You are not logged in.

#1 2010-02-21 03:27:59

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Uninstalling Drivers: pacman -Rsu ?

Hey, once I install a driver, if it turns out to be the wrong one, can I just uninstall it and return to how my system was previously?

Say with the pacman -Rsu command?


joe@trusktr.io - joe at true skater dot io.

Offline

#2 2010-02-21 03:57:16

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,393
Website

Re: Uninstalling Drivers: pacman -Rsu ?

Just -Rs is fine

Offline

#3 2010-02-21 04:00:51

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: Uninstalling Drivers: pacman -Rsu ?

Thanks Allan. What;s the difference?


joe@trusktr.io - joe at true skater dot io.

Offline

#4 2010-02-21 04:11:26

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: Uninstalling Drivers: pacman -Rsu ?

"man pacman" is you r friend:

-s, --recursive
Remove each target specified including all of their dependencies, provided that (A) they are not required by other packages; and (B) they were not explicitly installed by the user. This operation is recursive and analogous to a backwards --sync operation, and helps keep a clean system without orphans. If you want to omit condition (B), pass this option twice.

-u, --unneeded
Removes the targets that are not required by any other packages. This is mostly useful when removing a group without using the -c option, to avoid breaking any dependencies.

Offline

#5 2010-02-21 04:14:43

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: Uninstalling Drivers: pacman -Rsu ?

So if I don't use the 'u' option, then perhaps it might leave some packages/apps/targets that essentially won't be used for anything, save for their possible handyness in the future?


joe@trusktr.io - joe at true skater dot io.

Offline

#6 2010-02-21 04:34:04

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: Uninstalling Drivers: pacman -Rsu ?

-s command:
"Remove each target specified including all of their dependencies"

then have a look at condition (A) of the -s command:
"provided that (A) they are not required by other packages"

compare this to -u:
"Removes the targets that are not required by any other packages."

and than condition (B) of the -s command:
"and (B) they were not explicitly installed by the user."

So you aren't left with any orphans if you use -s and not -u.

Last edited by JackH79 (2010-02-21 04:37:55)

Offline

#7 2010-02-21 19:34:23

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: Uninstalling Drivers: pacman -Rsu ?

Hey sorry, Jack in my previous comment i meant 's', not 'u'.

So just using and 's' will then leave packages/apps that perhaps might not even be used for anything, whereas these packages will be deleted by using 'u'.

So if i want my system to be cleaner, then perhaps I should just include the 'u', right?


joe@trusktr.io - joe at true skater dot io.

Offline

#8 2010-02-21 19:35:15

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: Uninstalling Drivers: pacman -Rsu ?

Oh, and by "explicitly installed" i'm assuming this means installed without the use of pacman, right?


joe@trusktr.io - joe at true skater dot io.

Offline

#9 2010-02-21 20:16:25

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Uninstalling Drivers: pacman -Rsu ?

Wrong. Please don't make assumptions without doing the necessary research - in this case, a thorough reading of the pacman man page will help.

Offline

#10 2010-02-21 21:51:32

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: Uninstalling Drivers: pacman -Rsu ?

Alright, will do. Thanks! smile


joe@trusktr.io - joe at true skater dot io.

Offline

Board footer

Powered by FluxBB