You are not logged in.

#1 2013-09-19 10:00:57

headkase
Member
Registered: 2011-12-06
Posts: 1,977

[Solved] Proper method to remove multilib repository?

I've looked at the sparse Multilib Wiki Page and I have googled to no avail for instructions to properly remove the multilib repository and installed packages from it on my system.

pacman -Qs lib32*

Gives me a list of 32 bit packages installed on my machine however I am not versed in how to use a wildcard (*) with pacman -R.

My general idea of how to go about this is a) remove all 32 bit packages, b) comment out the multilib repo in pacman.conf, c) pacman -Syy

Any advice?  If I get a working solution I'll edit it into the Wiki Multilib page.

Last edited by headkase (2013-09-19 10:45:15)

Offline

#2 2013-09-19 10:17:43

kaszak696
Member
Registered: 2009-05-26
Posts: 543

Re: [Solved] Proper method to remove multilib repository?

LANG=C pacman -Sl multilib | grep installed | cut -d ' ' -f 2

Does show you a list of installed packages from the multilib repo, although there might be a more efficient method.

Last edited by kaszak696 (2013-09-19 10:18:25)


'What can be asserted without evidence can also be dismissed without evidence.' - Christopher Hitchens
'There's no such thing as addiction, there's only things that you enjoy doing more than life.' - Doug Stanhope
GitHub Junkyard

Offline

#3 2013-09-19 10:23:18

headkase
Member
Registered: 2011-12-06
Posts: 1,977

Re: [Solved] Proper method to remove multilib repository?

Ok, thank you, that gives me a proper list.  Now, how to pass that list to pacman -R?

Offline

#4 2013-09-19 10:25:48

kaszak696
Member
Registered: 2009-05-26
Posts: 543

Re: [Solved] Proper method to remove multilib repository?

By command substitution:

pacman -R `LANG=C pacman -Sl multilib | grep installed | cut -d ' ' -f 2`

Last edited by kaszak696 (2013-09-19 10:26:07)


'What can be asserted without evidence can also be dismissed without evidence.' - Christopher Hitchens
'There's no such thing as addiction, there's only things that you enjoy doing more than life.' - Doug Stanhope
GitHub Junkyard

Offline

#5 2013-09-19 10:39:12

headkase
Member
Registered: 2011-12-06
Posts: 1,977

Re: [Solved] Proper method to remove multilib repository?

Ok,

I ran into troubles with gcc-libs.  The solution to that was to

# pacman -S gcc-libs base-devel

Once that was done then I ran your command substitution line and it removed all the 32 bit packages:

# pacman -R `LANG=C pacman -Sl multilib | grep installed | cut -d ' ' -f 2`

Then I commented out multilib in

/etc/pacman.conf

Then

# pacman -Syy

And then in

/var/lib/pacman/sync

I deleted multilib.db.

Then

# pacman -Sc

to remove packages that were no longer installed from the cache.

Thank you very much! smile

Last edited by headkase (2013-09-19 11:12:41)

Offline

#6 2015-03-05 20:10:19

boxofrox
Member
Registered: 2012-07-09
Posts: 10

Re: [Solved] Proper method to remove multilib repository?

@headkase, thank you for posting your solution.  I rarely see anyone who asks a question bother sharing their solution beyond, "I figured it out.".  You, sir, are a scholar and a gentle...person.

Offline

#7 2015-03-05 20:32:27

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Proper method to remove multilib repository?

This is documented in the wiki now. Please don't necrobump: https://wiki.archlinux.org/index.php/Fo … Bumping.27



Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB