LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-03-2011, 04:57 AM   #1
khambatd.b.
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Rep: Reputation: 0
how to setup yum in centos5?


how to stup yum in centos5
 
Old 02-03-2011, 05:04 AM   #2
khambatd.b.
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Original Poster
Rep: Reputation: 0
help me! how to setup step by step yum in centos5
 
Old 02-03-2011, 05:35 AM   #3
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 82

Rep: Reputation: 20
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
 
Old 02-03-2011, 08:50 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
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
..
 
Old 02-03-2011, 04:56 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
? 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
 
Old 02-04-2011, 01:16 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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.
 
Old 02-07-2011, 05:27 AM   #7
khambatd.b.
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 02-07-2011, 05:30 AM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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
 
Old 02-07-2011, 09:38 AM   #9
coolsreejith
LQ Newbie
 
Registered: Oct 2010
Distribution: CentOS 5.5
Posts: 23

Rep: Reputation: 2
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
 
Old 02-07-2011, 03:01 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 12:25 PM
CentOS5.3 / GRE Tunnel setup DWaldrop_PCSB Linux - Newbie 2 12-13-2009 03:05 AM
yum dependency issue in centos5 nuwen52 Linux - Software 6 05-12-2009 01:18 PM
error timeout: <urlopen error timed out> when using yum on centos5.2 dadidudedo Linux - General 9 05-01-2009 05:21 AM
centos5.1 installation on large disk (2.8 tera) fails during partitioning at setup Yaniv-Fer Linux - Server 3 02-06-2008 09:03 AM


All times are GMT -5. The time now is 08:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration