You are not logged in.

#1 2011-03-03 03:19:44

Nightmare
Member
Registered: 2011-02-18
Posts: 5

Pacman Question (Solved)

Suppose I want to install 5 packages. But I do not want to reinstall up to date packages.
eg-- sudo pacman -S xx xy yy yu uu xu
xy is up to date reinstalling---

sudo pacman -Su xx xy yy yu uu xu
xy is up to date reinstalling---

What should be the syntax?
sudo pacman -* xx xy yy yu uu xu

P.S.-Do not tell me to read wiki. I read it, I am confused so I am asking


Solution
sudo pacman -S xx xy yy yu uu ux --needed

Last edited by Nightmare (2011-03-03 03:44:49)

Offline

#2 2011-03-03 03:23:30

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Pacman Question (Solved)

You're asking pacman to install programs that you already have installed. Stop doing that and pacman will stop reinstalling them.

Offline

#3 2011-03-03 03:24:38

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Pacman Question (Solved)

The man page extensively documents pacman's flags. In this case, the --needed flag does what you want.

Offline

#4 2011-03-03 03:26:04

Nightmare
Member
Registered: 2011-02-18
Posts: 5

Re: Pacman Question (Solved)

skottish wrote:

You're asking pacman to install programs that you already have installed. Stop doing that and pacman will stop reinstalling them.

Supoose XX is installed but XY is not. What should be the syntax so that XX is not reinstalled if upto date.

Offline

#5 2011-03-03 03:28:11

Nightmare
Member
Registered: 2011-02-18
Posts: 5

Re: Pacman Question (Solved)

falconindy wrote:

The man page extensively documents pacman's flags. In this case, the --needed flag does what you want.

What should be the right syntax? -Sneeded still reinstalls, -needed do not work

Offline

#6 2011-03-03 03:37:52

chris-kun
Member
From: SF Bay Area
Registered: 2010-09-07
Posts: 235
Website

Re: Pacman Question (Solved)

it is '--needed' with two dashes, exactly as the manpage specifies. Not -Sneeded or -needed.


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you." -- Bregol

Offline

#7 2011-03-03 03:41:20

Nightmare
Member
Registered: 2011-02-18
Posts: 5

Re: Pacman Question (Solved)

chris-kun wrote:

it is '--needed' with two dashes, exactly as the manpage specifies. Not -Sneeded or -needed.

Thank You.

Offline

#8 2011-03-03 14:59:20

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

Re: Pacman Question (Solved)

you say that you read the wiki, but it seems that you need to read it more carefully.


Forum Rules

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

Offline

Board footer

Powered by FluxBB