LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Arch (https://www.linuxquestions.org/questions/arch-29/)
-   -   pacman command question --needed (https://www.linuxquestions.org/questions/arch-29/pacman-command-question-needed-4175677826/)

sinclac57 06-29-2020 11:34 AM

pacman command question --needed
 
so if I use say sudo pacman -S xorg xorg-apps xorg-server xorg-drivers xorg-xkill xorg-xinit xterm mesa --needed


Doesn't the --needed mean install only if needed (As in if it is already installed don't reinstall) or am I miss understanding it?

Thanks

shruggy 06-29-2020 11:47 AM

No, you're right. From the ArchWiki:
Quote:

Note: If a package in the list is already installed on the system, it will be reinstalled even if it is already up to date. This behavior can be overridden with the --needed option.
BTW, the thread title is completely wrong. This is not a bash shell command question, this is a pacman question.

sinclac57 06-29-2020 12:00 PM

Quote:

Originally Posted by shruggy (Post 6139306)
No, you're right. From the ArchWiki:


BTW, the thread title is completely wrong. This is not a bash shell command question, this is a pacman question.

Ok that's what I thought the reason I asked it is reinstalling packages some packages, I looked at the wiki and didnt see it.

teckk 06-29-2020 12:57 PM

You can also grep a man page

Code:

man pacman | grep -A5 -B5 -- '--needed'
Or use the / and n key to search a man page

sinclac57 06-29-2020 01:01 PM

Quote:

Originally Posted by teckk (Post 6139335)
You can also grep a man page

Code:

man pacman | grep -A5 -B5 -- '--needed'
Or use the / and n key to search a man page

Thanks.

ondoho 06-29-2020 02:04 PM

OP, you can mark your thread SOLVED. See my signature.

Quote:

Originally Posted by teckk (Post 6139335)
grep -A5 -B5

grep -C5
;)

sinclac57 06-29-2020 10:18 PM

Quote:

Originally Posted by ondoho (Post 6139363)
OP, you can mark your thread SOLVED. See my signature.


grep -C5
;)

Forgot all about that Thanks.


All times are GMT -5. The time now is 02:12 PM.