[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.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

howtos:slackware_admin:querying_installed_packages [2012/09/25 04:17 (UTC)] – moved from the general howtos namespace mfillpothowtos:slackware_admin:querying_installed_packages [2020/06/16 11:29 (UTC)] (current) – [Querying Installed Packages] unixbhaskar
Line 52: Line 52:
 cairomm-1.9.8-x86_64-1_SBo cairomm-1.9.8-x86_64-1_SBo
 pycairo-1.8.10-x86_64-2</code> pycairo-1.8.10-x86_64-2</code>
 +
 +===Another way to find out the installed packages===
 +<file bash installed_pkgs_info>
 +
 +#!/bin/sh
 +#Save this script as "installed_pkgs_info" probably in /usr/local/bin
 +
 +pkgdir="/var/lib/pkgtools/packages/"
 +
 +printf "\n\n\b\t Getting the information about installed pkgs...\n\n"
 +
 +cd $pkgdir
 +
 +for i in *;do slackpkg info $i | grep "PACKAGE NAME:"; sleep 1;done 
 +</file>
 +
 +<code>
 + And the output should look like this :
 +
 +root@Slackware_16:45:19_Tue Jun 16:~#installed_pkgs_info
 +
 +
 + Getting the information about installed pkgs...
 +
 +PACKAGE NAME:  ConsoleKit2-1.2.1-x86_64-4.txz
 +PACKAGE NAME:  Cython-0.29.20-x86_64-1.txz
 +PACKAGE NAME:  GConf-3.2.6-x86_64-4.txz
 +PACKAGE NAME:  LibRaw-0.18.12-x86_64-1.txz
 +PACKAGE NAME:  M2Crypto-0.35.2-x86_64-5.txz
 +PACKAGE NAME:  MPlayer-20200103-x86_64-2.txz
 +PACKAGE NAME:  MPlayer-20200103-x86_64-2_alsa.txz
 +
 +..snipped output for brevity!
 +
 +</code>
 +
  
  
 howtos:slackware_admin:querying_installed_packages ()