[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Last revision | |||
— | howtos:slackware_admin:querying_installed_packages [2012/09/25 04:17 (UTC)] – moved from the general howtos namespace mfillpot | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
+ | ===== Querying Installed Packages ===== | ||
+ | Sometimes you might want to check whether a particular package is installed or which version of a package is installed on your system. If the package is part of the Slackware installation you could use the '' | ||
+ | |||
+ | < | ||
+ | # slackpkg info emacs | ||
+ | |||
+ | PACKAGE NAME: emacs-24.1-x86_64-6.txz | ||
+ | PACKAGE LOCATION: | ||
+ | PACKAGE SIZE (compressed): | ||
+ | PACKAGE SIZE (uncompressed): | ||
+ | PACKAGE DESCRIPTION: | ||
+ | emacs: emacs (GNU Emacs) | ||
+ | emacs: | ||
+ | emacs: Emacs is the extensible, customizable, | ||
+ | emacs: display editor. If this seems to be a bit of a mouthful, an | ||
+ | emacs: easier explanation is that Emacs is a text editor and more. At | ||
+ | emacs: its core is an interpreter for Emacs Lisp, a dialect of the Lisp | ||
+ | emacs: programming language with extensions to support text editing. | ||
+ | emacs: This version supports X. | ||
+ | emacs: | ||
+ | emacs: http:// | ||
+ | emacs:</ | ||
+ | |||
+ | This works fine for Slackware core packages. Some of us, however, install additional programs from a number of sources (eg. [[http:// | ||
+ | |||
+ | < | ||
+ | i3-4.2-x86_64-1_SBo | ||
+ | i3status-2.5.1-x86_64-1_SBo</ | ||
+ | |||
+ | First we list the contents of the ''/ | ||
+ | |||
+ | Another example showing all packages installed from Slackbuilds: | ||
+ | |||
+ | < | ||
+ | |||
+ | If you don't want to type it each time, you could create a very short script and add it to your path: | ||
+ | |||
+ | <file bash pkg.sh> | ||
+ | #!/bin/sh | ||
+ | packages_dir=/ | ||
+ | |||
+ | if [ " | ||
+ | ls $packages_dir | grep $1 | ||
+ | else | ||
+ | echo " | ||
+ | fi</ | ||
+ | |||
+ | < | ||
+ | cairo-1.10.2-x86_64-2 | ||
+ | cairomm-1.9.8-x86_64-1_SBo | ||
+ | pycairo-1.8.10-x86_64-2</ | ||
+ | |||
+ | |||
+ | < | ||
+ | |||
+ | ===== Sources ===== | ||
+ | * Originally written by [[wiki: | ||
+ | |||
+ | <!-- Please do not add anything below, except additional tags.--> | ||
+ | <!-- However we request that you remove the tag-word " | ||
+ | |||
+ | <!-- Do not remove this line and the tag definition below. Thanks! slackdocs@--> | ||
+ | {{tag> |