You are not logged in.
Pages: 1
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
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
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
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
moving to Newbie Corner
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
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
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
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
orschiro i dont know what you ment tho...
Maybe he meant pkg-list_true_orphans http://xyne.archlinux.ca/projects/pkg_scripts/
Edit is there a way I can flag this as solved?
Offline
Pages: 1