LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Problems removing multilib packages. (http://www.linuxquestions.org/questions/slackware-14/problems-removing-multilib-packages-4175414459/)

camorri 07-02-2012 09:57 AM

Problems removing multilib packages.
 
As the title says, I am having problems removing multi-lib. This is 13.37 stable 64 bit system.

I had multi-lib installed, and working correctly. I did a system update with slackpkg. I ran the command 'slackpkg clean-system' after update, install-new, and upgrade-all. I though I had blacklisted the correct packages to prevent multi-lib from being removed. I did not, pressed enter, and watched the system remove a lot of multi-lib stuff. I know I messed it up, still learning package management.

O.K. I have looked over my system, and the only package I can find that is 32 bit that I currently need ( or wanted ) was Google Earth. As far as I can tell, it is still only available as a 32 bit package.
I use it much less these days, and I have a copy on XP that I run in V-box. So, I decided to remove multi-lib, at least in the short term.

I ran this command successfully. 'multilibpkg --uninstall @WorldWide-13.37'. I had to re-install multilibpkg, it must have been one of the things removed by my mistake.

The problem. I ran the command 'compat32pkg --remove all' ( as root ) and it fails. The output.

Code:

root@duelie:/home/cliff/multilib/13.37# compat32pkg --remove all

compat32pkg ver. 1.4.110408 (stable)

(ERROR) The command 'convertpkg-compat32' is not installed on your system. Please install it before running compat32pkg.

I'm also missing what ever gives me convertpkg-compat32. I have not been able to figure out how to re-install it. I did a locate command, it is not anywhere on my system.

I have been through the doc, on Aliens site, Sourceforge, etc. I'm confused at this point. How do I reinstall the missing stuff, so I can remove the whole 32 bit layer?

I think this package is what is missing -
Quote:

compat32-tools-2.1-noarch-11alien.tgz
I can't find it. Is there a link to download it from?

camorri 07-02-2012 12:17 PM

Found and installed compat32-tools-2.1-noarch-11alien.tgz.

Ran the command 'compat32pkg --remove all' with the following result.

Quote:

compat32pkg --remove all

compat32pkg ver. 1.4.110408 (stable)

(INFO) No default mirror was defined in configuration's script /etc/compat32pkg/compat32pkg.conf
[--remove] Started on Mon 02 Jul 2012 01:12:52 PM EDT
[--remove] Local system is Slackware/x86_64 version 13.37.0
[--remove] Configuration file for "layer-32" : /etc/compat32pkg/multilib-32bit-packages.lst version 1.4.110522

[--remove] 13 package(s) were found (0,045 sec.)

[ package ] [ remove status ]
curl-compat32-7.21.4-x86_64-1 OK
e2fsprogs-compat32-1.41.14-x86_64-1 OK
dbus-compat32-1.4.1-x86_64-1 OK
cairo-compat32-1.10.2-x86_64-2 OK
atk-compat32-1.32.0-x86_64-1 OK
dbus-glib-compat32-0.88-x86_64-1 OK
cups-compat32-1.4.6-x86_64-1 OK
bzip2-compat32-1.0.6-x86_64-1 OK
aaa_elflibs-compat32-13.37-x86_64-7 OK
cyrus-sasl-compat32-2.1.23-x86_64-1 OK
audiofile-compat32-0.2.7-x86_64-1 OK
cxxlibs-compat32-6.0.14-x86_64-1 OK
esound-compat32-0.2.41-x86_64-1 OK

[--remove] Ended on Mon 02 Jul 2012 01:13:15 PM EDT
Does this look like I have removed everything for Multi-lib?

drumz 07-02-2012 09:33 PM

Examine the output of
Code:

ls /var/log/packages | grep compat32
Code:

ls /var/log/packages | grep multilib
and use removepkg for what still needs to be removed.

EDIT: Actually the multilib packages are gcc and glibc so you should use upgradepkg to replace them with the stock Slackware packages.

phenixia2003 07-03-2012 03:53 AM

Hello,
Quote:

Originally Posted by camorri (Post 4717183)
The problem. I ran the command 'compat32pkg --remove all' ( as root ) and it fails. The output.

Code:

root@duelie:/home/cliff/multilib/13.37# compat32pkg --remove all

compat32pkg ver. 1.4.110408 (stable)

(ERROR) The command 'convertpkg-compat32' is not installed on your system. Please install it before running compat32pkg.


Good catch ! this bug will be fixed in the next compat32pkg.

Quote:

Originally Posted by camorri (Post 4717300)
Ran the command 'compat32pkg --remove all' with the following result.

Code:

compat32pkg --remove all

compat32pkg ver. 1.4.110408 (stable)

(INFO) No default mirror was defined in configuration's script /etc/compat32pkg/compat32pkg.conf
[--remove] Started on Mon 02 Jul 2012 01:12:52 PM EDT
[--remove] Local system is Slackware/x86_64 version 13.37.0
[--remove] Configuration file for "layer-32" : /etc/compat32pkg/multilib-32bit-packages.lst version 1.4.110522

[--remove] 13 package(s) were found (0,045 sec.)

[ package ] [ remove status ]
curl-compat32-7.21.4-x86_64-1 OK
e2fsprogs-compat32-1.41.14-x86_64-1 OK
dbus-compat32-1.4.1-x86_64-1 OK
cairo-compat32-1.10.2-x86_64-2 OK
atk-compat32-1.32.0-x86_64-1 OK
dbus-glib-compat32-0.88-x86_64-1 OK
cups-compat32-1.4.6-x86_64-1 OK
bzip2-compat32-1.0.6-x86_64-1 OK
aaa_elflibs-compat32-13.37-x86_64-7 OK
cyrus-sasl-compat32-2.1.23-x86_64-1 OK
audiofile-compat32-0.2.7-x86_64-1 OK
cxxlibs-compat32-6.0.14-x86_64-1 OK
esound-compat32-0.2.41-x86_64-1 OK

[--remove] Ended on Mon 02 Jul 2012 01:13:15 PM EDT

Does this look like I have removed everything for Multi-lib?

That seems ok. You can check this as explained by drumz. Anyway, I don't understand why compat32pkg has only
processed 13 packages. There should be more than 100, but this may be related to the "slackpkg clean-system"
you've done. Can you post the content of /var/log/compat32pkg.log and /var/log/multilibpkg.log ?

thanks

--
SeB

camorri 07-03-2012 06:57 AM

2 Attachment(s)
Thank-you both for your interest.

drumz, the two ls commands;

Code:

ls /var/log/packages | grep multilib
-rw-r--r--  1 root root    1394 Jul  2 09:37 multilibpkg-1.1.110412-noarch-1_SeB
root@duelie:/var/log# ls /var/log/packages | grep compat32
-rw-r--r--  1 root root    962 Jul  2 13:12 compat32-tools-2.1-noarch-9alien
-rw-r--r--  1 root root    1645 Jul  2 09:58 compat32pkg-1.4.110408-noarch-1_SeB

This is much less than I expected. Not sure what is going on here.

phenixia2003,

As requested, I have tried to upload the two logs. As I remember, I thought there should be many more compat32 packages. 13 doesn't seem to be enough. Only other comment I have right now is the system seems stable. I have not found any other problems.

I did some pocking around and found I still have the directories,

Quote:

ls /usr/slack32-compat-packages
total 32
drwxr-xr-x 8 root root 4096 Apr 21 2011 ./
drwxr-xr-x 27 root root 4096 Jul 2 13:13 ../
drwxr-xr-x 2 root root 4096 Apr 21 2011 a-compat32/
drwxr-xr-x 2 root root 4096 Apr 21 2011 ap-compat32/
drwxr-xr-x 2 root root 4096 Apr 21 2011 d-compat32/
drwxr-xr-x 2 root root 4096 Apr 21 2011 l-compat32/
drwxr-xr-x 2 root root 4096 Apr 21 2011 n-compat32/
drwxr-xr-x 2 root root 4096 Apr 21 2011 x-compat32/
All the install packages are in these dir's. Would it be a good idea to do a removepkg for each package ? I would rather ask first, than bork the system.

phenixia2003 07-03-2012 01:41 PM

Quote:

Originally Posted by camorri (Post 4718003)

Code:

ls /var/log/packages | grep multilib
-rw-r--r--  1 root root    1394 Jul  2 09:37 multilibpkg-1.1.110412-noarch-1_SeB
root@duelie:/var/log# ls /var/log/packages | grep compat32
-rw-r--r--  1 root root    962 Jul  2 13:12 compat32-tools-2.1-noarch-9alien
-rw-r--r--  1 root root    1645 Jul  2 09:58 compat32pkg-1.4.110408-noarch-1_SeB

This is much less than I expected. Not sure what is going on here.

Unless you want to re-install the multilib later, you can uninstall these packages, as below :
Code:

$ removepkg multilibpkg compat32-tools compat32pkg

Quote:

Originally Posted by camorri (Post 4718003)
As requested, I have tried to upload the two logs. As I remember, I thought there should be many more compat32 packages. 13 doesn't seem to be enough.

For 13.37, there's more than 100 compat32-packages. I guess compat32pkg has only removed 13 packages because you have run
"slackpkg clean-system" before. But as this could be a bug in compat32pkg, I need more information. In your first post, you said :
Quote:

"I ran the command 'slackpkg clean-system' ... and watched the system remove a lot of multi-lib stuff".
  • Have you waited the end of the "clean-system" or have you stopped it (CTRL+C) ?
  • Can you post the contents of the following files (if they're always present on your system) :
    /var/lib/compat32pkg/include.pat
    /var/lib/compat32pkg/exclude.pat
    /var/lib/compat32pkg/compat32-packages.inf

Quote:

Originally Posted by camorri (Post 4718003)
Only other comment I have right now is the system seems stable. I have not found any other problems.

You have successfully reverted your system from "multilib" to "pure 64-bit". There's no reason to worry.

Quote:

Originally Posted by camorri (Post 4718003)
I did some pocking around and found I still have the directories,

Code:

ls /usr/slack32-compat-packages
total 32
drwxr-xr-x 8 root root 4096 Apr 21 2011 ./
drwxr-xr-x 27 root root 4096 Jul 2 13:13 ../
drwxr-xr-x 2 root root 4096 Apr 21 2011 a-compat32/
drwxr-xr-x 2 root root 4096 Apr 21 2011 ap-compat32/
drwxr-xr-x 2 root root 4096 Apr 21 2011 d-compat32/
drwxr-xr-x 2 root root 4096 Apr 21 2011 l-compat32/
drwxr-xr-x 2 root root 4096 Apr 21 2011 n-compat32/
drwxr-xr-x 2 root root 4096 Apr 21 2011 x-compat32/

All the install packages are in these dir's. Would it be a good idea to do a removepkg for each package ? I would rather ask first, than bork the system.

The packages in these directories are not installed on your system. You can simply remove the folder "/usr/slack32-compat-packages".


--
SeB

camorri 07-03-2012 03:58 PM

My plan is to leave the system alone, ( run it ) for a week or so, just to make sure there are no hidden problems. Then I will run
Quote:

removepkg multilibpkg compat32-tools compat32pkg
if no problems show up.

Quote:

Have you waited the end of the "clean-system" or have you stopped it (CTRL+C) ?
I waited to the end of clean system, I let it run.

I'm attaching these files :
Quote:

/var/lib/compat32pkg/include.pat
/var/lib/compat32pkg/exclude.pat
/var/lib/compat32pkg/compat32-packages.inf

camorri 07-03-2012 04:04 PM

1 Attachment(s)
Include.pat.

Code:

cat include.pat                                                                                   
.*

Exclude.pat.
Code:

cat exclude.pat                                                                                   
extra/source/.*
isolinux/.*
kernels/.*
pasture/source/.*
patches/source/.*
source/.*
testing/source/.*
usb-and-pxe-installers/.*
aaa_base
etc
glibc.*
gcc.*
kernel.*
lilo
loadlin
grub

Still can not get slack32-packages.txt to upload.

I gzip'ed the file. It is less than the 256k limit now.

I give up. I can not upload this file, even though its gziped, less than 256k.

Is there some other way to get the file on this thread?

I renamed it, seems you can not upload a file ending in .gz.

phenixia2003 07-04-2012 04:41 AM

Hello,

I checked the files you have sent and I didn't find anything wrong.

Quote:

Originally Posted by camorri (Post 4718463)
I waited to the end of clean system, I let it run

So, "slackpkg clean-system" has left the 13 compat32-packages that have been removed later when you have
ran "compat32pkg --remove all". Therefore, there's definitely no problem with "compat32pkg --remove". Why
"slackpkg clean-system" has left these packages ? I don't know, and I guess this will remain a mystery.

--
SeB

camorri 07-04-2012 08:20 AM

Thank-you for your help. I'm going to mark this thread solved.


All times are GMT -5. The time now is 01:26 PM.