[CentOS] App add/delete and changing from CD install to LAN

Wed Dec 28 18:52:56 UTC 2005
Benjamin Smith <lists at benjamindsmith.com>

Yum is a really, really nice tool to know! Now that I've gotten familiar with 
it, I now setup servers with no package groups installed, and just use yum to 
get whatever I need when I need it. 

To see a list of all rpms available via yum 

	yum list  

This can be somewhat slow, so what I tend to do is 

	yum list > ~/rpmlist 

and then grep that file. Eg: 

	grep -i thunder ~/rpmlist 

You can also install groups of items, (EG: All the "KDE" stuff) using 
groupinstall. EG: 

	yum groupinstall kde 

And to get a list of groups... 

	yum grouplist 

Here are some neat tricks I've discovered...

To remove all of packages matching a pattern, and all dependencies, in this 
case, postgresql: 

	yum remove `rpm -qa | grep postgres` 

Let's say you have some RPMs in a directory, and want to install them along 
with the dependencies: (This is one I discovered just yesterday!) 

	yum install ./postgres* 

-Ben 

On Tuesday 27 December 2005 22:48, Robert Moskowitz wrote:
> At 08:42 PM 12/27/2005, Jim Perrin wrote:
> >On 12/27/05, Robert Moskowitz <rgm at htt-consult.com> wrote:
> > > I just added a couple apps to a server and I was asked to insert CD
> > > #3.  I had wanted to use HTTP to access the distro on my HTTP server.
> > >
> > > Now I want to install on another server, so I have a second chance to
> > > get this right....
> > >
> >
> >Don't use the "Add or Remove Programs" menu option. It is horribly
> >broken, and provided because the upstream vendor provides the broken
> >app as well. Instead, open up a terminal of your choosing and use yum.
> 
> And what do I ask for say for Thunderbird?
> 
> yum install thunderbird
> 
> ?
> 
> 
> 
> 
> 
> >--
> >Jim Perrin
> >System Architect - UIT
> >Ft Gordon & US Army Signal Center
> >_______________________________________________
> >CentOS mailing list
> >CentOS at centos.org
> >http://lists.centos.org/mailman/listinfo/centos
> 
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 

-- 
"The best way to predict the future is to invent it."
- XEROX PARC slogan, circa 1978