Fedora 12 Installation and Post Installation Guide |
|
|
| Written by axel | ||||||||||||||||||
4. Configure yum* Basic CommandsBelow 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 --help man 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' * Importing Fedora GPG keysFedora 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/*' * Third party Repositories* RPM FusionFedora 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! ;)
Now we are going to install the RPM Fusion Repository. RPM Fusion is a merger of the Dribble, Freshrpms and RPM Fusion package repositories for Fedora and Red Hat Enterprise Linux. A variety of applications is included in that repository such as codecs for mp3 and unencrypted DVDs, multimedia applications such as mplayer, VLX and xine and the closed source Nvidia and ATi video drivers! RPM Fusion has two main repositories:
For the rest of this guide I will assume that you have installed and enabled the RPM Fusion Repository. If you are using Gnome (Fedora's default Desktop Environment) you can do this with a few clicks through Firefox. Users of KDE and kpackagekit can do this only manually because of a bug in kpackagekit. Here are both ways to install RPM Fusion Repository. So if you are using Gnome just click the two links below and press Enter a few times: RPM Fusion free for Fedora 8, 9, 10, 11 or 12 RPM Fusion nonfree for Fedora 8, 9, 10, 11 or 12 If you are using KDE open a terminal and type: su - rpm -ivh \ http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm rpm -ivh \ http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm yum update su -c 'rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-*' * 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.rpm rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux It will be automatically enabled. 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.pub rpm --import linux_signing_key.pub rm linux_signing_key.pub gedit /etc/yum.repos.d/google.repo Depending on your architecture paste the following lines: [google] name=Google - i386 baseurl=http://dl.google.com/linux/rpm/stable/i386 enabled=1 gpgcheck=1 [google64] name=Google - x86_64 baseurl=http://dl.google.com/linux/rpm/stable/x86_64 enabled=1 gpgcheck=1 * Graphical Interface for yumIf 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' * Configure yum through ProxyIf 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 proxy=http://ip:port/ 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. * Yum plugins* Presto PluginThe 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. 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. Presto is installed and enabled by default in the Fedora 12 release!* Fastest Mirror PluginExactly 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' * Security PluginThis 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: man yum-security * Allowdowngrade Plugin
Yum by default doesn't allow you to downgrade a package. However sometimes a new package may cause you problems. In that case you can downgrade to the previous working version of the package with this plugin. To install it type:
su -c 'yum install yum-allowdowngrade' To use it type: su -c 'yum update --allow-downgrade' su -c 'gedit /etc/yum/pluginconf.d/allowdowngrade.conf' |
||||||||||||||||||
| Last Updated ( Monday, 28 December 2009 ) | ||||||||||||||||||
| < Prev | Next > |
|---|






