First, YUM is always installed & configured by defaut. To insure it is installed, run this command # rpm -qv yum If the answer were that package yum is not installed so you should use the installtion CDs to install it or use any of the download mirrors listed @ http://www.centos.org/modules/tinycontent/index.php?id=13
If it is already installed run the following command # yum -y update if it is a fresh install you may get a message about missing GPG key, in this case run the following command # rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4 for CentOS-4 OR # rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-3 for CentOS-3 Otherwise, if you got messages about setting up repos so your YUM is working
To install any package issue the command # yum -y install Package_Name
Finally, Main yum configuration file is /etc/yum.conf & repos configuration resides under /etc/yum.repos.d
Also, you can find apt RPM @ http://centos.karan.org/el4/extras/stable/i386/RPMS/repodata/repoview/apt-0-...
Hope this will help Hameed
(Contents of the configuration files below based on CentOS-4 only, Don't use for CentOS-3) Default main configuration file is /etc/yum.conf & here is a snapshot of its default settings
########################## Begin /etc/yum.conf ########################## [main] cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=centos-release tolerant=1 exactarch=1 retries=20 obsoletes=1 gpgcheck=1
# PUT YOUR REPOS HERE OR IN separate files named file.repo # in /etc/yum.repos.d ########################## End /etc/yum.conf ##########################
Under /etc/yum.repos.d you should have the repos files
----- Original Message ----- From: "duffmckagan" mckagan@gmail.com To: "CentOS mailing list" centos@centos.org Sent: Saturday, August 13, 2005 7:19 AM Subject: [CentOS] Using YUM
I haven't configured YUM .
How do I do it? Sorry if this is a really stupid question, but I have no idea about it. Moreover, I would also like to use APT afterwards.
I really want to try both of these. I have used apt-get before many a times, but never used YUM.
Can anybody post the procedure to get this working? Which repositories to be added, how it is to be configured?
And yes, how do i use the apt-get on Cent OS too.
Note that I will be using only one at a time. And I will keep the other thing for future reference.
Thank you.