You are not logged in.

#1 2015-05-25 00:02:24

Huugin
Member
Registered: 2013-03-09
Posts: 9

[SOLVED] pacman -[S|Q]i not working, invalid option -- '['

I was looking for the equivalent for apt-cache show and from https://wiki.archlinux.org/index.php/Pacman_Rosetta, it found the command

pacman -[S|Q]i

However, when I try to use it I get the error invalid option -- '['

Last edited by Huugin (2015-05-25 00:17:08)

Offline

#2 2015-05-25 00:03:55

SnowyClaw
Member
Registered: 2015-05-12
Posts: 24

Re: [SOLVED] pacman -[S|Q]i not working, invalid option -- '['

Huugin wrote:

I was looking for the equivalent for

 apt-cache show 

and from https://wiki.archlinux.org/index.php/Pacman_Rosetta, it found the command

 pacman -[S|Q]i 

However, when I try to use it I get the error

invalid option -- '[' 

Hello, Huugin. It seems that they're meaning for you to choose between -Si and -Qi. -[S|Q]i will not work.

Offline

#3 2015-05-25 00:06:58

Huugin
Member
Registered: 2013-03-09
Posts: 9

Re: [SOLVED] pacman -[S|Q]i not working, invalid option -- '['

But the -Qi argument only works for installed packages.

Offline

#4 2015-05-25 00:09:53

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,901
Website

Re: [SOLVED] pacman -[S|Q]i not working, invalid option -- '['

Huugin wrote:

But the -Qi argument only works for installed packages.

Correct. However, -Si will show details of any package in the binary repositories.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2015-05-25 00:10:27

SnowyClaw
Member
Registered: 2015-05-12
Posts: 24

Re: [SOLVED] pacman -[S|Q]i not working, invalid option -- '['

Huugin wrote:

But the -Qi argument only works for installed packages.

I've checked what the command does, and you're right. If you need info of a non-installed package, use

pacman -Si

If you need the info of an installed package, use

pacman -Qi

Edit: WorMzy beat me to it. cx

Last edited by SnowyClaw (2015-05-25 00:10:57)

Offline

#6 2015-05-25 00:38:16

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] pacman -[S|Q]i not working, invalid option -- '['

'[foo]'' means optional argument, ,'<foo>' means mandatory argument. It's a similar to https://en.wikipedia.org/wiki/Backus–Naur_Form

Offline

Board footer

Powered by FluxBB