You are not logged in.

#1 2009-11-22 22:27:56

cola
Member
Registered: 2009-11-20
Posts: 63

What's the command to know if a package is installed or not?

What's the command to know if a package is installed or not?

Offline

#2 2009-11-22 22:29:12

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

Re: What's the command to know if a package is installed or not?

man pacman

Offline

#3 2009-11-22 22:30:17

Mardoct
Member
Registered: 2009-08-17
Posts: 208

Re: What's the command to know if a package is installed or not?

For future reference, use

man <command>

to get info, or check the wiki entry.

It's

pacman -Q <package name>

to list exact matches, or

pacman -Qs <regex>

to look for a certain regex.


The human being created civilization not because of willingness but of a need to be assimilated into higher orders of structure and meaning.

Offline

#4 2009-11-24 04:20:05

IgnorantGuru
Member
Registered: 2009-11-09
Posts: 640
Website

Re: What's the command to know if a package is installed or not?

Here's my pacman cheat sheet so far...

Refresh
    pacman -Sy

Search
    pacman -Ss term1 term2...

Clear cache (interactive)
    pacman -Scc

Show unrequired packages
    pacman -Qt

Show unrequired packages that were installed as dependencies
    pacman -Qtd

Find outdated packages
    pacman -Sy
    pacman -Qu

System upgrade
    pacman -Su

Show dependencies and required by
    pacman -Qi package

Show files owned by
    pacman -Ql package

Remove package and unneeded deps
    pacman -Rs package

Offline

#5 2009-11-24 05:06:53

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: What's the command to know if a package is installed or not?

The Pacman Rosetta is very helpful...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2009-11-24 05:21:55

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: What's the command to know if a package is installed or not?

Isn't this the same question as: http://bbs.archlinux.org/viewtopic.php?id=85468

Offline

#7 2009-11-24 05:38:27

IgnorantGuru
Member
Registered: 2009-11-09
Posts: 640
Website

Re: What's the command to know if a package is installed or not?

jasonwryan wrote:

The Pacman Rosetta is very helpful...

Thanks, that's very cool

Offline

Board footer

Powered by FluxBB