View Single Post

  #2  
Old 08-21-2008, 07:43 PM
Default Re: Yum repository question

Artificer wrote:
> I have a couple of question about installing packages:


> 1.How can I add my RHEL or centos installation CD as a repository for
> yum? I noticed that whenever I try to use yum I get the packages from
> the internet but not from my CD.


> 2.After adding the CD as a repository how can I give the CD priority
> to ensure that if a packages is available on both my CD and the redhat
> network I don’t end up downloading a package that I already have
> locally in my disk.


You put it in the drive and do something like

yum localinstall

where package is like

/media/CDROM/path/package

However this will go to the web in search of the latest dependencies. Also if
your disk is not the latest the next time it will go online to update/upgrade
and what is on your disk is out of date it will find the latest. So I do not
see what you are going to gain by insisting upon the CD version.

Perhaps you could yum info package before installing.

> 3. On gnome I used to “add and remove software” tool onthe
> application menu. From there I was able to find openoffice. However
> with a “yum –info openoffice” I get nothing. Why is that?


Because nothing is named openoffice. However

yum info openoffice*

will get what you want. It is a quirk that does require some hunting to find
the right way to name what you are looking for. Note it is "info" not "-info".
Also do NOT

yum install openoffice*

As that gets you all the language packs of which there appear to be an
infinite number.

--
Charon won't take counterfeit coins.
-- The Iron Webmaster, 4037
http://www.giwersworld.org/environment/aehb.phtml a2
Reply With Quote