You are not logged in.

#1 2005-03-17 04:06:30

FJ
Member
From: Ontario, Canada
Registered: 2005-03-17
Posts: 75
Website

pacman -U versus pacman -R/pacman -S

Hey, I have a newbie question about pacman.  I was reading the manpage for it and I saw this command: pacman -U, and it says it does a "remove-then-add" of a package.  Okay.  So is there any difference between

pacman -R foo
pacman -S foo

and just

pacman -U foo

Regarding the Wiki entry for installing KDE 3.4, what would happen if I just used pacman -U kde instead?

Offline

#2 2005-03-17 04:21:54

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: pacman -U versus pacman -R/pacman -S

Pacman -S will download the pkgs from the repos.
Pacman -U is equivalent to pacman -R, pacman -A


And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.

Offline

#3 2005-03-17 06:19:26

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: pacman -U versus pacman -R/pacman -S

yea, -S takes a package name as the argument, -U takes a file name...

# pacman -U kde-3.4-1.pkg.tar.gz
#pacman -S kde

Offline

#4 2005-03-17 19:37:46

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: pacman -U versus pacman -R/pacman -S

They are not equivalent.
Backup files handling is a big difference.

Offline

#5 2005-03-24 22:38:22

FJ
Member
From: Ontario, Canada
Registered: 2005-03-17
Posts: 75
Website

Re: pacman -U versus pacman -R/pacman -S

Cheers, I understand now.

Offline

Board footer

Powered by FluxBB