Hi,
I am running a CentOS 4.3 machine. I wish to move on to 4.4. My problem is that I have some 60 duplicate packages listed below. The kernel and gpg-pubkey packages are different versions of the same (none for the gpg) architecture. All the rest are a x86_64 and i[356]86 pairs.
1. Is this a problem?
2. If yes, what should I do? a) remove the duplicates (the i[356]86) and then 4.3 -> 4.4? b) 4.3 -> 4.4 and only after that remove duplicates? c) something else?
3. How to actually do the removal? Simply 'yum remove ...' or are there some packages that require special care?
4. I have enabled the dries, kbsingh, and rpmforge, repositories for few packages (acroread, pine,...). However, I didn't keep track which packages come from those repos so I can't apply the 'includepkgs' instruction on them. What's the easiest way to recover that information? (Default 'yum list installed' doesn't provide the repository.)
Thanks in advance, Itay
################################################################ List of packages follows: prompt> rpm -qa --qf "%{NAME}\n" | sort | uniq -d ################################################################
alsa-lib atk audiofile audit-libs bzip2-libs compat-libstdc++-33 cracklib cracklib-dicts cyrus-sasl db4 dbus dbus-glib device-mapper e2fsprogs esound evolution-data-server expat fontconfig freetype gamin GConf2 gdbm glib2 glibc gnome-vfs2 gnutls gpg-pubkey gtk2 hal kernel kernel-devel kernel-smp krb5-libs libart_lgpl libbonobo libcap libgcc libgcrypt libgnome libgpg-error libIDL libjpeg libpng libselinux libsoup libstdc++ libtiff libxml2 openldap openssl ORBit2 pam pango popt redhat-artwork startup-notification xorg-x11-libs xorg-x11-Mesa-libGL zlib
################################################################ End of list ################################################################
On 10/9/06, itayf@nospammail.net itayf@nospammail.net wrote:
I am running a CentOS 4.3 machine. I wish to move on to 4.4. My problem is that I have some 60 duplicate packages listed below.
Some of those are supposed to be duplicated. If you have an x86_64 architecture, you get both the 64-bit and 32-bit versions of some packages.
See the thread "Yum upgrade to 4.4 problem" in the August 31 - early September time span in the CentOS list archives at http://lists.centos.org/pipermail/centos/.
In particular this:
prompt> rpm -qa --qf "%{NAME}\n" | sort | uniq -d
is the wrong "rpm" incantation to detect the real duplications on x86_64. You need to include %{ARCH} in there somewhere.
On Mon, 9 Oct 2006, Bart Schaefer wrote:
Date: Mon, 9 Oct 2006 08:33:16 -0700 From: Bart Schaefer barton.schaefer@gmail.com Reply-To: CentOS mailing list centos@centos.org To: CentOS mailing list centos@centos.org Subject: Re: [CentOS] Yum, duplicate packages, 4.3->4.4 upgrade.
On 10/9/06, itayf@nospammail.net itayf@nospammail.net wrote:
I am running a CentOS 4.3 machine. I wish to move on to 4.4. My problem is that I have some 60 duplicate packages listed below.
Some of those are supposed to be duplicated. If you have an x86_64 architecture, you get both the 64-bit and 32-bit versions of some packages.
How to identify pairs that were packaged together versus pairs that were carelessly installed (by me) during different yum updates? Should version numbers match in the former? Must I manually scan pkg-by-pkg documentation or 'rpm -ql'?
See the thread "Yum upgrade to 4.4 problem" in the August 31 - early September time span in the CentOS list archives at http://lists.centos.org/pipermail/centos/.
Yup - I spent 2-3 hours yestermorning reading _all_ the 4.4-upgrade-problems threads before posting to the list. Saw the scripts for removing duplicates. However, I don't remember seeing clearly a method for identifying packaged pairs from other duplicates.
In particular this:
prompt> rpm -qa --qf "%{NAME}\n" | sort | uniq -d
is the wrong "rpm" incantation to detect the real duplications on x86_64. You need to include %{ARCH} in there somewhere.
Indeed, on a seperate run I appended the %{ARCH} format, and that's how I could tell that the kernel and gpg packages are version duplicates.
Thanks for the help. Itay
On Mon, 2006-10-09 at 17:15 +0200, itayf@nospammail.net wrote:
Hi,
<snip>
- I have enabled the dries, kbsingh, and rpmforge, repositories for few packages (acroread, pine,...). However, I didn't keep track which packages come from those repos so I can't apply the 'includepkgs' instruction on them. What's the easiest way to recover that information? (Default 'yum list installed' doesn't provide the repository.)
I /var/log/rpmpkgs is a (weeklyupdated?) list of file names. Some have ".rf" in them, other "plus" etc. This should tell you for most packages from where they came.
I would then read up on some of the yum stuff (plugins) and use a combination of "includepkgs=", "exclude=" and "protect=" to get you going. Set this stuff up before you do any other changes.
Thanks in advance, Itay
<snip pkg list>
HTH -- Bill
On Mon, 9 Oct 2006, William L. Maltby wrote:
Date: Mon, 09 Oct 2006 12:23:50 -0400 From: William L. Maltby CentOS4Bill@triad.rr.com Reply-To: CentOS mailing list centos@centos.org To: CentOS General List centos@centos.org Subject: Re: [CentOS] Yum, duplicate packages, 4.3->4.4 upgrade.
On Mon, 2006-10-09 at 17:15 +0200, itayf@nospammail.net wrote:
Hi,
<snip>
- I have enabled the dries, kbsingh, and rpmforge, repositories for few packages (acroread, pine,...). However, I didn't keep track which packages come from those repos so I can't apply the 'includepkgs' instruction on them. What's the easiest way to recover that information? (Default 'yum list installed' doesn't provide the repository.)
I /var/log/rpmpkgs is a (weeklyupdated?) list of file names. Some have ".rf" in them, other "plus" etc. This should tell you for most packages from where they came.
That't what I was looking for - thanks!
BTW, I noticed that the packages in the dries repo are labeled with 'rf', the same as rpmforge. One is the mirror of the other?
I would then read up on some of the yum stuff (plugins) and use a combination of "includepkgs=", "exclude=" and "protect=" to get you going. Set this stuff up before you do any other changes.
"protect=" I used from the start in this installation. But I realized the significance of "includepkgs=" and "exclude=" too late. Hence my questions.
Thanks for the help. Itay
Thanks in advance, Itay
<snip pkg list>
HTH
Bill
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Tue, 2006-10-10 at 08:05 +0200, Itay Furman wrote:
On Mon, 9 Oct 2006, William L. Maltby wrote:
<snip hdr & some more stuff>
- I have enabled the dries, kbsingh, and rpmforge, repositories for few packages (acroread, pine,...). However, I didn't keep track which packages come from those repos so I can't apply the 'includepkgs' instruction on them. What's the easiest way to recover that information? (Default 'yum list installed' doesn't provide the repository.)
I /var/log/rpmpkgs is a (weeklyupdated?) list of file names. Some have ".rf" in them, other "plus" etc. This should tell you for most packages from where they came.
That't what I was looking for - thanks!
BTW, I noticed that the packages in the dries repo are labeled with 'rf', the same as rpmforge. One is the mirror of the other?
Essentially, no. Dag and dries et al got together and started the rpmforge project. They have been migrating stuff there. They still have the originals at their unique sites but Dag has been consistently requesting folks to use rpmforge. There is some verbiage on the CentOS site about it when you get past this current case of hiccups.
My *assumption* is that Dag/Dries may have versions on their unique sites that may be unsuitable some day.
<snip>
Thanks for the help. Itay
<sig sig/footer stuff>
HTH -- Bill
On Mon, 9 Oct 2006, itayf@nospammail.net wrote:
Date: Mon, 9 Oct 2006 17:15:28 +0200 (IST) From: itayf@nospammail.net Reply-To: CentOS mailing list centos@centos.org To: centos@centos.org Subject: [CentOS] Yum, duplicate packages, 4.3->4.4 upgrade.
Hi,
I am running a CentOS 4.3 machine. I wish to move on to 4.4. My problem is that I have some 60 duplicate packages listed below. The kernel and gpg-pubkey packages are different versions of the same (none for the gpg) architecture. All the rest are a x86_64 and i[356]86 pairs.
Thanks to Will and Bart for the help so far.
'yum deplist' on the list of installed packages revealed many cases in which both x86_64 and i[356]86 packages provide the same dependency. Example:
package: gdbm.x86_64 1.8.0-24 dependency: libc.so.6()(64bit) provider: glibc.x86_64 2.3.4-2.25 dependency: /sbin/ldconfig provider: glibc.i686 2.3.4-2.25 <<============== provider: glibc.x86_64 2.3.4-2.25 <<============== dependency: libc.so.6(GLIBC_2.2.5)(64bit) provider: glibc.x86_64 2.3.4-2.25
Note that both glibc.i686 and glibc.x86_64 are installed on my machine. I'm sorry if this is a newbie question - but how do I proceed from here? Shouldn't I try to remove the i686 package provided that all its dependencies are satisfied by the x86_64 package as above?
Thanks, Itay
On 10/10/06, itayf@nospammail.net itayf@nospammail.net wrote:
'yum deplist' on the list of installed packages revealed many cases in which both x86_64 and i[356]86 packages provide the same dependency.
This information is probably not all that useful. Obviously the packages will provide the same dependency; that's (in part) why the packages have the same name aside from the architecture. In this example:
dependency: /sbin/ldconfig provider: glibc.i686 2.3.4-2.25 <<============== provider: glibc.x86_64 2.3.4-2.25 <<==============
If a 32-bit program were to try to link with the 64-bit glibc (or vice-versa), all sorts of problems would result. To remove glibc.i686, you'd have to be sure that there were NO other 32-bit packages on your system.
I think what you're really looking for is the set of packages that appear in your previous rpm listing as duplicates, but that DO NOT appear in the deplist output at all. The packages that DO appear in the deplist are presumably those that you need to keep.
On Tue, 10 Oct 2006, Bart Schaefer wrote:
Date: Tue, 10 Oct 2006 08:17:17 -0700 From: Bart Schaefer barton.schaefer@gmail.com Reply-To: CentOS mailing list centos@centos.org To: CentOS mailing list centos@centos.org Subject: Re: [CentOS] Yum, duplicate packages, 4.3->4.4 upgrade.
On 10/10/06, itayf@nospammail.net itayf@nospammail.net wrote:
'yum deplist' on the list of installed packages revealed many cases in which both x86_64 and i[356]86 packages provide the same dependency.
This information is probably not all that useful. Obviously the
[snip]
I think what you're really looking for is the set of packages that appear in your previous rpm listing as duplicates, but that DO NOT appear in the deplist output at all. The packages that DO appear in the deplist are presumably those that you need to keep.
Good I asked (wiping sweat off forehead :-) Following your suggestion it looks like all duplicates are required...
Sorry for wasting your time, but thanks for the help.
Itay
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos