LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Remove multilib - how to upgrade gcc and glibc? (http://www.linuxquestions.org/questions/slackware-14/remove-multilib-how-to-upgrade-gcc-and-glibc-4175447289/)

andreas-r 01-26-2013 05:07 AM

Remove multilib - how to upgrade gcc and glibc?
 
Trying to uninstall Alien Bob's multilib packages (the Wine program I needed didn't work anyway) I did this:

- installed compat32pkg
- ran
Code:

compat32pkg --remove all
and
Code:

removepkg multilibpkg compat32-tools compat32pkg
I still have these packages:
Code:

bash-4.2$ ls /var/log/packages | grep multilib
gcc-4.7.1_multilib-x86_64-1alien
gcc-g++-4.7.1_multilib-x86_64-1alien
gcc-gfortran-4.7.1_multilib-x86_64-1alien
gcc-gnat-4.7.1_multilib-x86_64-1alien
gcc-go-4.7.1_multilib-x86_64-1alien
gcc-java-4.7.1_multilib-x86_64-1alien
gcc-objc-4.7.1_multilib-x86_64-1alien
glibc-2.15_multilib-x86_64-7alien
glibc-i18n-2.15_multilib-x86_64-7alien
glibc-profile-2.15_multilib-x86_64-7alien
glibc-solibs-2.15_multilib-x86_64-7alien
glibc-zoneinfo-2012f_2012f_multilib-noarch-7alien

I can understand from the answers to this questions that I need to use upgradepkg to replace them with the stock Slackware packages.

How exactly do I do that?

Is there anything else that I need to do to revert from multilib so I won't have trouble installing SlackBuilds and other 64bit packages?

Thanks!

tuxbg 01-26-2013 05:13 AM

slackpkg reinstall <packagename>

andreas-r 01-26-2013 05:19 AM

Should I do that for all the packages listed above?
Won't that just reinstall Alien Bob's multilib packages?

Sorry but I'm pretty newbie ...

tuxbg 01-26-2013 06:51 AM

Yes for all package's.

andreas-r 01-26-2013 07:06 AM

This only work with one gcc package:
Code:

root@duk:/var/log/packages# slackpkg reinstall glibc*

Looking for glibc-2.15_multilib-x86_64-7alien glibc-i18n-2.15_multilib-x86_64-7alien glibc-profile-2.15_multilib-x86_64-7alien glibc-solibs-2.15_multilib-x86_64-7alien glibc-zoneinfo-2012f_2012f_multilib-noarch-7alien in package list. Please wait... DONE

No packages match the pattern for reinstall. Try:

        /usr/sbin/slackpkg install|upgrade


root@duk:/var/log/packages# slackpkg reinstall gcc*

Looking for gcc-4.7.1_multilib-x86_64-1alien gcc-g++-4.7.1_multilib-x86_64-1alien gcc-gfortran-4.7.1_multilib-x86_64-1alien gcc-gnat-4.7.1_multilib-x86_64-1alien gcc-go-4.7.1_multilib-x86_64-1alien gcc-java-4.7.1_multilib-x86_64-1alien gcc-objc-4.7.1_multilib-x86_64-1alien gccmakedep-1.0.2-noarch-2 in package list. Please wait... DONE

After which I get a slackpgk menu where the only thing I can choose is this:
Code:

[*] gccmakedep-1.0.2-noarch-2.txz
Then tried upgrading but:
Code:

upgradepkg gcc*
Cannot install gcc-4.7.1_multilib-x86_64-1alien:  invalid package extension
Cannot install gcc-g++-4.7.1_multilib-x86_64-1alien:  invalid package extension
Cannot install gcc-gfortran-4.7.1_multilib-x86_64-1alien:  invalid package extension
Cannot install gcc-gnat-4.7.1_multilib-x86_64-1alien:  invalid package extension
Cannot install gcc-go-4.7.1_multilib-x86_64-1alien:  invalid package extension
Cannot install gcc-java-4.7.1_multilib-x86_64-1alien:  invalid package extension
Cannot install gcc-objc-4.7.1_multilib-x86_64-1alien:  invalid package extension
Cannot install gccmakedep-1.0.2-noarch-2:  invalid package extension


tuxbg 01-26-2013 07:50 AM

Run the command without this *

slackpkg reinstall glibc
slackpkg reinstall gcc

andreas-r 01-26-2013 07:56 AM

Hmm, doesn't seem to work:
Code:

root@duk:/var/log/packages# slackpkg reinstall glibc

Looking for glibc in package list. Please wait... DONE

No packages match the pattern for reinstall. Try:

        /usr/sbin/slackpkg install|upgrade


root@duk:/var/log/packages# slackpkg reinstall gcc 

Looking for gcc in package list. Please wait... DONE

No packages match the pattern for reinstall. Try:

        /usr/sbin/slackpkg install|upgrade


willysr 01-26-2013 08:27 AM

Check your blacklist file on /etc/slackpkg

andreas-r 01-26-2013 08:40 AM

Blacklist contained '[0-9]+alien' that I added after multilib install. Didn't think of that. After removing it I can 'slackpkg upgrade glibc|gcc' - thanks. Hope my system is back to "normal" 64bit.


All times are GMT -5. The time now is 09:14 AM.