Description
yum is an interactive, automated update program which can be used for maintaining systems using rpm.
yum is software installation tool for Red hat linux and Fedora Linux. It is a complete software management system. Other option is to use up2date utility. yum is designed to use over network/internet. It does not use CDROM to install packages. If you are using fedora you don’t have to install it, it is part of fedora itself.
yum.conf - Configuration file for yum
yum - Yellowdog Updater Modified
yum [options] [command] [package ...]
Additional configuration files are also read from the directories set by the reposdir option (default is ‘/etc/yum.repos.d’ and ‘/etc/yum/repos.d’). See the reposdir option below for further details.
These repositories ‘sign’ their RPM files to make sure they are valid when downloaded. Import the GPG keys to these repositories:
[Puneet@localhost ~]$ sudo rpm –import /etc/pki/rpm-gpg/*
Now u can Download any Packages Provided by Fedora Repositories by Using :
[Puneet@localhost ~]$ yum -y install [package name]
Note : -y is used for yes
For applications that are against Fedora policies (MP3, DVD, MPEG, Binary Drivers, etc), a third party repository should be used.
[Puneet@localhost ~]$sudo rpm -ivh http://rpm.livna.org/livna-release-8.rpm
[Puneet@localhost ~]$sudo rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-livna
Now if u use :
[Puneet@localhost ~]$ yum -y install package-name
Third party packages will be installed from livna repositories safely.
Package-name is the Name of the Desired Package
yum plugins
Presto is a project that provides faster, smaller size downloads to Fedora users. With presto plugin enabled you use deltarpm repositories to download only the part of the rpm that has change, thus saving you bandwidth and time. To enable it open a terminal and type:
[Puneet@localhost ~] $ sudo yum install yum-presto deltarpm
Next we have to make some changes to the .repo file to support downloading from deltarpm repositories.
Presto Repositories
To use presto in Fedora, you need to have some presto repositories enabled ,How to Given Below :-
Now Type :-
[Puneet@localhost ~] $ sudo nano /etc/yum.repos.d/fedora-updates.repo
and
change it from
[updates]
name=Fedora $releasever – $basearch – Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedorato
[updates]
name=Fedora $releasever – $basearch – Updates
baseurl=http://lesloueizeh.com/f8/i386/updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
or to
[updates]
name=Fedora $releasever – $basearch – Updates
baseurl=http://dl.anmar.eu.org/repos/f8/updates-x86_64
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
depending on your Fedora version.
Now Save Press (Ctrl+O)
and Exit Press(Ctrl+X) .
Now each time you try a yum update you should see a ‘Loading “presto” plugin’ mesage.
it Helped me a Lot Thanx To My-guides.net .
Before we run our initial update, we might as well remove things that we’re going to replace or remove anyway. No sense in updating something you’re just going to turn around and remove, right?
[Puneet@localhost ~]$yum -y remove totem*
Unless you’re using a laptop:
[Puneet@localhost ~]$yum -y remove bluez-libs pcmciautils
Now that the Livna repos are installed, it’s time to start the initial system update. Back in the terminal window, type in:
[Puneet@localhost ~]$yum -y update
This could take a while, depending on the number of updates your system requires, so we’ll use this time to make some preferential changes.
Yum Basic Commands For the Knowledge :-
Here in the Commands Below application_name is the Name of The Required application.
* Install an application
[Puneet@localhost ~]$ sudo yum install application_name
* Remove an application
[Puneet@localhost ~]$ sudo yum remove application_name
* Install an rpm from your hard disk using yum to resolve dependencies
[Puneet@localhost ~]$ sudo yum localinstall application_name
* Search for an application
[Puneet@localhost ~]$ sudo yum search application_name
* Find info about an application
[Puneet@localhost ~]$ sudo yum info application_name
* Update the whole system
[Puneet@localhost ~]$ sudo yum update
* Enable a repository
[Puneet@localhost ~]$ sudo yum –enablerepo=repo_name
* Disable a repository
[Puneet@localhost ~]$ sudo yum –disablerepo=repo_name
Filed under: FEDORA 8 :GUIDE, FEDORA LINUX, OPTIONALS | Leave a Comment »