Operating System - Linux
1748159 Members
4046 Online
108758 Solutions
New Discussion юеВ

Re: How to install all the packages available at one repo in RHEL 5

 
senthil_kumar_1
Super Advisor

How to install all the packages available at one repo in RHEL 5

Hi All,

How to install all the packages available at particular one repo "rhel-x86_64-server-5" in RHEL 5.

4 REPLIES 4
Tim Nelson
Honored Contributor

Re: How to install all the packages available at one repo in RHEL 5

assuming your yum configuration points to this repo...

what is wrong with "yum install or yum update" ? see man yum for install vs update

now, I would bet there may be some packages in the repo that either do not apply to your system or are for rpms that you do not have installed. so I guess you would have to define "all"

another option (probably not the best) would be to download them all locally, then rpm -ivh *.rpm ?

Steven E. Protter
Exalted Contributor

Re: How to install all the packages available at one repo in RHEL 5

Shalom,

Machine needs to be registered to RHN and have an Internet connection.

OR:

You need to have a repository built on your local network.

yum list
#lists all possible packages that can be installed.

yum install
#Name as displayed on yum list

The above sequence will install a package and necessary dependencies.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
senthil_kumar_1
Super Advisor

Re: How to install all the packages available at one repo in RHEL 5

Hi All,

I have registered my server with RHN.

I am able to list all the packages available in RHN repos.

In RHEL4 we can use below mentioned command to install all the packages available in one channel.

Ex:

#up2date --installall=├в rhel-i386-es-4├в

Like above , what is the command syntax is used with yum on RHEL 5?

Matti_Kurkela
Honored Contributor

Re: How to install all the packages available at one repo in RHEL 5

You should create a yum group file (comps.xml) for your repository.

Define a group that includes all the packages in the repository, then use:

yum groupinstall

More details:
http://ramblings.narrabilis.com/wp/creating-a-yum-repository-repo-and-creating-a-yum-group-to-install-kickstart/

MK
MK