Configuring Yum (get the packgs thru net)
June 22, 2006 by gopalkoduri
Note : All the future posts and even updates to existing ones, when it comes to howtos will take place at tidbits. There will NOT be any updates here. So, kindly go here to find recent version of this.
Till the previous version i.e,FC4,yum,as a default setting,reffered to the local repo,i.e. the rpms on your disk. But,there is a little change in this as now,it tries to access the repos over internet as it is default,now. If you have network connection then follow this,else skip here
step 1 : download this package and this
step 2 : Now install/upgrade those rpms: rpm -ivh or rpm -Uvh yum *.rpm(–force,if it gives some errors of replacing files)
step 3 : Now,you need yum.conf file to be replaced by this
# This is the fedorafaq.org yum.conf for Fedora Core 5. # # Note that you also need the rest of the configuration # as described at http://www.fedorafaq.org/#yumconf [main] proxy=http://192.168.36.204:8080 cachedir=/var/cache/yum keepcache=1 debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=redhat-release tolerant=1 exactarch=1 obsoletes=1 # Don’t check keys for localinstall gpgcheck=0 plugins=1 metadata_expire=1800 # Changed this because some mirrors go down and then # re-trying takes forever. timeout=60 # PUT YOUR REPOS HERE OR IN separate files named file.repo # in /etc/yum.repos.d
step 4 : Get this commands and run them
run these commands at the prompt
root@localhost#cp /etc/yum.conf{,.bak} //this is backing up the previous to yum.conf.bak
root@localhost#cp yum.conf /etc/yum.conf //copy the file obtained here to /etc/yum.conf
If you are NOT a IIITian,you need to change the proxy setting in this file, as well as in the previous commands to the respective one.
Now you have little hand-work to do,(if you dont have idea of sed or awk) i.e..remove all #’s before the baserepo’s in .repo files in /etc/yum.repo.d/ and ‘enable=0’s to ‘enable=1’s if you like to get some package from that repo thru yum.
Thats it !! A beautiful tool is up,so dat you dont need to go for recursive installations of dependencies of mplayer,videolan-client or what not ? Use it.
PS: A small advice
1 : disable the dries repo as it doesn’t seem to be working anymore or may be it is very busy!
2 : Usually the packages on atrpms,livna are contradicting..so its better to disable either of them.(this may not always be the case)



[...] But,for this you need yum configured on your machine,for this look here [...]