LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 06-29-2020, 10:34 AM   #1
sinclac57
LQ Newbie
 
Registered: Jun 2020
Posts: 17

Rep: Reputation: Disabled
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

Last edited by sinclac57; 06-29-2020 at 09:15 PM.
 
Old 06-29-2020, 10:47 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
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.

Last edited by shruggy; 06-29-2020 at 10:51 AM.
 
Old 06-29-2020, 11:00 AM   #3
sinclac57
LQ Newbie
 
Registered: Jun 2020
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
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.
 
Old 06-29-2020, 11:57 AM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,145
Blog Entries: 6

Rep: Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832
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
 
Old 06-29-2020, 12:01 PM   #5
sinclac57
LQ Newbie
 
Registered: Jun 2020
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
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.
 
Old 06-29-2020, 01:04 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
OP, you can mark your thread SOLVED. See my signature.

Quote:
Originally Posted by teckk View Post
grep -A5 -B5
grep -C5
 
Old 06-29-2020, 09:18 PM   #7
sinclac57
LQ Newbie
 
Registered: Jun 2020
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
OP, you can mark your thread SOLVED. See my signature.


grep -C5
Forgot all about that Thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does bash script has equivalent set /p command as Windows shell command? ncheng Linux - Newbie 5 06-30-2016 05:29 AM
ssh from solaris 9 with a bash shell of 2.0 to suse 3.2 bash shell slufoot80 Solaris / OpenSolaris 3 09-19-2012 03:06 PM
ssh from solaris 9 with a bash shell of 2.0 to suse 3.2 bash shell slufoot80 Solaris / OpenSolaris 1 09-19-2012 01:19 PM
A question about shell (bash shell) thomas2004ch Linux - Newbie 4 08-27-2009 02:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 03:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration