[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preparing for RHEL6



On Fri, Apr 22, 2011 at 10:47:53PM -0500, Robert G. (Doc) Savage wrote:
> Because one does not upgrade between major RHEL versions, I cannot
> just let the system automatically upgrade what's already installed.

Actually, I'm pretty sure a direct upgrade will work...  I'm going to be
testing that soon though to be sure.

> To guide me, I'd like to generate a list of all 2,759 installed
> packages sorted by their source repo. When I run "yum list installed",
> it doesn't tell me the repo it came from.

Odd.  My yum tells me what repo I installed from...

  # yum list installed
  Loaded plugins: fastestmirror, refresh-packagekit
  Installed Packages
  AdobeReader_enu.i486                   9.4.2-1                     @adobe-linux-i386
  [...]

Oh, wait, I just tried the same thing on one of my CentOS 5 installs,
and that third field just says "installed".

Still, the great thing about yum is that you don't need to know what
repo these things live in.  You just need to know the package names.
Well, all you *really* need is the output of this command:

  yum list installed | grep '\.' | awk '{print $1}'

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.