Below there are the most common commands you will use for yum, Fedora's Package Management System. You can find a more detailed description of those along with some more commands if you type:
yum --helpman yum
* Install an application
su -c 'yum install application_name'
* Remove an application
su -c 'yum remove application_name'
* Install an rpm from your hard disk using yum to resolve dependencies
su -c 'yum localinstall application_name'
* Search for an application
su -c 'yum search application_name'
* Find info about an application
su -c 'yum info application_name'
* Update the whole system
su -c 'yum update'
* Enable a repository
su -c 'yum --enablerepo=repo_name'
* Disable a repository
su -c 'yum --disablerepo=repo_name'
Fedora has 2 basic repositories named 'fedora' and 'updates'. To use them and not get errors about unsigned packages you must import their GPG keys. Open a terminal and type:
su -c 'rpm --import /etc/pki/rpm-gpg/*'
**Note: You will get a few error messages like "import failed" but this is ok.
* RPM Fusion Fedora software repositories don't include support for MP3, DVD and Video playback/recording because of patent licenses. For this reason you have to install that software from third party repositories. But don't worry, this is pretty easy! ;)
If you are using KDE open a terminal and type:
su -rpm -ivh \http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpmrpm -ivh \http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpmyum update
If you get an error message like this "Public key for rpmfusion-nonfree-release-11-1.noarch.rpm is not installed" while trying to install a package from RPMFusion repository you have to import the GPG keys first. Open a terminal and type:
su -c 'rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-*'
You will get a few failure messages but this is ok.* Adobe The Adobe repository provides flash and acrobat reader packages for the x86 Fedora. To install it type:
su -rpm -ivh http://linuxdownload.adobe.com/linux/i386/adobe-release-i386-1.0-1.noarch.rpmrpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
It will be automatically enabled. * Google Well, it has only picasa but for those who need it install it by typing:
su -wget https://dl-ssl.google.com/linux/linux_signing_key.pubrpm --import linux_signing_key.pubrm linux_signing_key.pubgedit /etc/yum.repos.d/google.repo
Depending on your architecture paste the following lines:
[google]name=Google - i386baseurl=http://dl.google.com/linux/rpm/stable/i386enabled=1gpgcheck=1
[google64]name=Google - x86_64baseurl=http://dl.google.com/linux/rpm/stable/x86_64enabled=1gpgcheck=1
If you don't like typing commands in your console you can use Fedora's Graphical interface for yum. You can find it under System -> Administration -> Add/Remove Software. You can also install yumex for this reason.
su -c 'yum install yumex'
If you are behind an http proxy server and you want yum to connect to the internet through that proxy open a terminal and type:
su -c 'gedit /etc/yum.conf'
Add this line in the yum configuration
where ip is your proxy's ip address and port is the port the proxy listens to. Don't forget the / after the port number. Save and exit.
The presto plugin provides faster, smaller size downloads to Fedora users. It downloads only the part of the rpm that has been updated and not the whole package. Presto is ofedora_firefoxicially included in the Fedora 11 release and I recommend to use it! Just a notice. If you have let's say version N of an rpm installed and you miss the N+1 installation presto can't take you directly to N+2. In this case you will have to download the whole rpm. But this shouldn't bother you. Yum will take care of everything. To install it type:
su -c 'yum install yum-presto'
Exactly what its name says. This plugin searches for the fastest mirror in your mirrorlist and downloads all packages from it. To install it type:
su -c 'yum install yum-fastestmirror'
Now, just use yum as usual. You can configure various settings of this plugin in the file:
su -c 'gedit /etc/yum/pluginconf.d/fastestmirror.conf'
This plugin allows you to search and install only security related updates. Very useful if you have Fedora installed on a Server production mode. To install it type:
su -c 'yum install yum-security'
To apply security plugins type:
su -c 'yum --security update'
For more information and additional options such as bugzilla updates and advisory information read its manual:
su -c 'yum install yum-allowdowngrade'
To use it type:
su -c 'yum update --allow-downgrade'
You can disable this plugin by changing the option enabled in the file:
su -c 'gedit /etc/yum/pluginconf.d/allowdowngrade.conf'