Quote:
Originally Posted by nasr-noor
How can I install fedora in minimum size, only for runnig my own opengl game? (..) too many packages that I didn't choose and need and fedora installation become large. For example I don't need network connection, print and ... .
|
There's different ways, depending on how well you know Fedora.
The easiest way may be to look for Fedora (Unity?) Respins which may have a spin that caters to gamers, hoping that cuts out most tools you don't need.
A moderately easy way would be to install Fedora then list packages by group (removing in the sense of quick wins), then remove packages. The GROUPS file resides in /usr/share/doc/rpm-*/, catting it shows names like "Development/Libraries". Since they're only needed for compiling software you could list them with 'rpm -q -g "Development/Libraries"' and try removing them with 'rpm --test -e -g "Development/Libraries"'. If there are no warnings, or if you know ignoring those those warnings does not endanger operability you could proceed by removing "--test" and probably use "--force" as well. Removing individual packages can also be done with Yum: 'yum remove libgnomecups hal-cups-utils desktop-printing cups' should show which dependent packages will be removed as well. In this example it would also remove "redhat-lsb" which you may not know. Running 'rpm -qi redhat-lsb' will display information about the use of the package and 'rpm -ql redhat-lsb' will list the packages contents. With these two commands it is easier to find out if you need it or not. Of course you can add the package back in later on without further dependencies with 'rpm -i --nodeps package.rpm'.
* Yum may be easier for you to handle package ops, and adding these lines to /etc/yum.conf before you begin may save your hide when you break more than you can easily recover:
Code:
# Repackage
tsflags=repackage
as it puts repackaged packages in /var/spool/repackage. Those packages do not replace pristine packages but it may help if you just need to extract a binary, library or configuration file you need to get things going again.
RPM allows you all kinds of selections: group, size, installation date, et cetera. Listing packages by group and size may help finding ones to remove:
Code:
cat /usr/share/doc/rpm-*/GROUPS | while read group; do
echo "${group}: "; rpm -q --qf='%{SIZE} %{NAME}-%{VERSION}.%{RELEASE}\n' -g "${group}"\
|\sort -nrk1 | column -t; echo; done
Finally the hard way would be to install Fedora with a custom package selection but without selecting
anything. This should get you a "base" install on top of which you can add packages you need. This allows you more control over what gets installed but the trade-off is it will be time-consuming, cumbersome and error-prone.
** If you're accustomed to running a RPM-based distribution you could also look into CentOS. It has less packages to install compared to Fedora and it does not follow Fedora's upgrade schedule.
Quote:
Originally Posted by nasr-noor
after above installation I couldn't install nvidia driver,with error: "kernel source not found", which package I should select during installation for solve nvidia driver installation error.
|
Try 'yum install kernel-source'?