You are not logged in.

#1 2014-02-17 16:21:14

rexineffect
Member
Registered: 2014-02-16
Posts: 48

[SOLVED]Best/cleanest way to use pacman -R

After reading the manual I have came up with my idea of best way to use pacman -R command, please tell me what you think, is there a better/cleaner way to remove packages I don't want anymore, a safer way?

sudo pacman -Rnsu [target]


So I don't want backups saved, so I have -n there.

I don't want all the dependencies installed with the package (I think.....) so I have -s there.

And I don't want unneeded packages so I have -u there.

Is this all safe and clean? Thanks guys!


P.S. I'm removing vim or trying to right now, I forgot about sublime text and how fun it was back when I used to use it. Thanks!

Last edited by rexineffect (2014-02-18 07:49:37)

Offline

#2 2014-02-17 16:28:55

Jojonintendo
Member
Registered: 2013-12-06
Posts: 56

Re: [SOLVED]Best/cleanest way to use pacman -R

Personally I always use that exact same command to remove software. Not sure if there is a cleaner way to do it, but I'm curious about it too.


M/B: Asus M5A97 LE R2.0 CPU: AMD FX(tm)-6100 Six-Core Processor GPU: XFX R9 390 DD Black Edition RAM: Kingston HyperX Beast DDR3 1866 2X4GB SSD: Crucial M4 128GB SATA 3
CPU and GPU are watercooled by Ibercool kit.

Offline

#3 2014-02-17 16:32:52

rexineffect
Member
Registered: 2014-02-16
Posts: 48

Re: [SOLVED]Best/cleanest way to use pacman -R

I just noticed something when I ran pacman -Suy

It looks like my libusbx is wanting to be replaced with libusb.

Would it be cleaner for me to stop the installation there, do the command I just spoke of:

sudo pacman -Rnsu libusbx

Then go and download/install libusb?

is that just a total waste of time?

If so would it clean up anything at all?

would it be dangerous or maybe damage anything? thanks


Thanks for reply Jojonintendo

Last edited by rexineffect (2014-02-17 16:33:27)

Offline

#4 2014-02-17 16:35:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Best/cleanest way to use pacman -R

It won't damage anything. Yes, you can run 'pacman -Rns foo' first and then update or install 'pacman -S bar'.
I'm not sure if adding 'u' to 'pacman -Rns' is needed.

Offline

#5 2014-02-17 16:43:48

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED]Best/cleanest way to use pacman -R

moving to Newbie Corner


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#6 2014-02-17 18:18:10

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED]Best/cleanest way to use pacman -R

I mostly use

# pacman -Rsc <pkg>

If I am sure that I don't need a package, I surely don't need any packages that depend on that.

Last edited by x33a (2014-02-17 18:18:45)

Offline

#7 2014-02-18 05:54:58

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [SOLVED]Best/cleanest way to use pacman -R

Here too, Rsn without -u.

Checking for orphans is done by pkg_scripts:

https://aur.archlinux.org/packages/pkg_scripts/

Last edited by orschiro (2014-02-18 05:55:06)

Offline

#8 2014-02-18 07:15:30

rexineffect
Member
Registered: 2014-02-16
Posts: 48

Re: [SOLVED]Best/cleanest way to use pacman -R

Thanks guys im going to use -Rns from now on with an alias in my bashrc

alias pacrem='sudo pacman -Rns        # Remove the specified package(s), its configuration(s) and unneeded dependencies


orschiro i dont know what you ment tho...


Edit is there a way I can flag this as solved?

Last edited by rexineffect (2014-02-18 07:15:49)

Offline

#9 2014-02-18 07:19:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Best/cleanest way to use pacman -R

rexineffect wrote:

orschiro i dont know what you ment tho...

Maybe he meant pkg-list_true_orphans http://xyne.archlinux.ca/projects/pkg_scripts/

rexineffect wrote:

Edit is there a way I can flag this as solved?

https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

#10 2014-02-18 08:57:12

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [SOLVED]Best/cleanest way to use pacman -R

@rexineffect/karol

Exactly. I am using pkg-list_true_orphans from pkg_scripts which is extremely effective in finding real orphan packages.

Offline

Board footer

Powered by FluxBB