LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to setup yum in centos5? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-setup-yum-in-centos5-860420/)

khambatd.b. 02-03-2011 03:57 AM

how to setup yum in centos5?
 
how to stup yum in centos5

khambatd.b. 02-03-2011 04:04 AM

help me! how to setup step by step yum in centos5

goodhombre 02-03-2011 04:35 AM

Hi,

Usually yum is installed by default .
Try these to find out if you is installed on you box :
Code:

yum --version
rpm -q yum


knudfl 02-03-2011 07:50 AM

Welcome to LQ.

The most yum commands has to done with : 1) su <enter password>
2) yum <option> <option>

The most used yum commands :
Find a package name : yum search <name> ( or part of name ).
The same, searching for several packages :
yum search <name> <name> <name> <name> <name>

Installing one or more packages : yum install <package>
yum install <package> <package> <package> <package> <package>

Finding which package to install, to get a certain file :
yum provides */<file name>


The yum manual : Just type 'man yum'.
Or read on-line http://linux.die.net/man/8/yum
..

John VV 02-03-2011 03:56 PM

? did you even read the centOS wiki?
or the centOS forum ?
there are links ON THE CENT WEB PAGE
you HAD TO HAVE seen them when you downloaded centos 5.5 !!!!

read them !
http://wiki.centos.org/
http://wiki.centos.org/AdditionalResources/Repositories
--forum--
http://centos.org/modules/newbb/index.php?cat=8

chrism01 02-04-2011 12:16 AM

yum examples from RedHat
https://access.redhat.com/kb/docs/DOC-2531

As above, yum is part of the basic install, so it'll already be there. Really you need to be root via 'su -' or 'sudo ..' to run it.
If you've installed the GUI, it's what is called in the background by the Add/Remove programs menu option.

khambatd.b. 02-07-2011 04:27 AM

My question is how to create repo in centos5.4 & what is the steps or file to edit?

I copy all dvd (centos5.4) in /var/ftp/pub & I want to create repo.

John VV 02-07-2011 04:30 AM

centOS 5.4 is UNSUPPORTED

there are no rpms for a repo

the dvd is is't own repo
but seeing as 5.4 is not supported any longer
install 5.5
then in a month or 3 install 5.6 when it comes out

coolsreejith 02-07-2011 08:38 AM

remove all the files on your /etc/yum.repo.d/ directory and then create a new file with the extension .repo. The contents of the file must look like

[local]
name=local repo
baseurl=file:///var/ftp/pub/
enable=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5


and run the command yum clean all

John VV 02-07-2011 02:01 PM

coolsreejith
but for centos 5.4 there IS NOTHING to install there are NO centos5.4 rpms - other than on the OLD dvd
and the dvd is out of date


All times are GMT -5. The time now is 09:53 AM.