LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-27-2008, 07:23 PM   #1
AgentD
LQ Newbie
 
Registered: May 2008
Location: Hawaii
Distribution: Ubuntu, debian, xandros
Posts: 24

Rep: Reputation: 0
Is there a list of all installed packages?


Please forgive the newbie post, I just installed Slackware 12.1 the other day and only some of the programs are showing in the Fluxbox menu. Is there a list somewhere of what programs are installed? I did the complete install as I am looking to make linux my standard for video/audio editing. Any advice on books to read for using linux? I have read almost the whole slackbook but it is pretty vague on applications available.
 
Old 05-27-2008, 07:31 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
From the command line, as root, run pkgtool. Then select the View option.

For a cursory view, open the /var/log/packages directory.

If you performed a full installation, then open the text files named PACKAGES.TXT or FILELIST.TXT.

I hope this helps.

Quote:
I have read almost the whole slackbook but it is pretty vague on applications available.
If after following the previous suggestions, you still feel the same, please provide a comment in this thread where the information was not explicit enough. Perhaps the slackbook could be improved.
 
Old 05-27-2008, 07:50 PM   #3
AgentD
LQ Newbie
 
Registered: May 2008
Location: Hawaii
Distribution: Ubuntu, debian, xandros
Posts: 24

Original Poster
Rep: Reputation: 0
I found the pkgtool, thanks! I'm really looking for a document which perhaps spreadsheet that would allow me to see both the name of the package and the description of what it does in a searchable format. Any suggestions? I could not find PACKAGES.TXT OR FILELIST.TXT
 
Old 05-27-2008, 10:10 PM   #4
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Code:
$ ls -1 /var/log/packages
will list all of the packages installed on your system.
Code:
$ ls -1 /var/log/packages > /home/username/packagelist.txt
...OR...
Code:
$ ls -1 /var/log/packages | less
will allow you to browse the list a little easier. If you want to see the descriptions, type the following:
Code:
$ less /var/log/packages packagename
If you want to browse EVERY description, you could run the following line which should work most of the time -- but that would take a LONG time to read.
Code:
$ cd /var/log/packages
$ for i in *; do cat $i | grep ^$(echo $i | awk '{print substr($0,1,2)}') | grep \: | uniq -u; echo; done | less
You could always redirect the output to a file instead of to `less` which would allow you to do more with it -- but if you want a spreadsheet, you'll have to find your own parsing mechanism. You can search in `less` by typing the / character, then typing the word to search for and pressing enter. Typing / and then enter again will take you to the next entry. Of course, if you direct the output to a file, you can use whatever you want to search it.

Last edited by T3slider; 05-27-2008 at 10:41 PM.
 
Old 05-27-2008, 10:28 PM   #5
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
I could not find PACKAGES.TXT OR FILELIST.TXT
Look in the root directory of the first CD or DVD. Or look in the root directory at any Slackware mirror, such as slackware-12.1. Niether document is in a spreadsheet format, but is easily searchable.
 
Old 05-27-2008, 11:36 PM   #6
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
If you really want a spreadsheet, there's a nice easy way to do it. Run the following:
Code:
$ cd /var/log/packages
$ for i in *; do cat $i | grep ^$(echo $i | awk '{print substr($0,1,2)}') | grep \: | uniq; echo; done | sed 's/:/°/' > ~/packagelist.txt
Then, if you use OpenOffice, you can go to "Insert">"Sheet From File". Open ~/packagelist.txt. In the dialog box that pops up, choose "Separated by" and check the "Other" box (and uncheck the "Tab" box if it is checked). In the text field beside the Other box, put the degree symbol (°). You can probably copy and paste it. The line above replaces the first : with a ° simply because some of the lines have URLs in them, which would fragment the description and make it less readable -- so put a ° in the "Other" box instead of a :. Click OK, and then click OK on the next sheet (assuming the defaults are fine). Presto -- the package name, with descriptions, in a searchable spreadsheet. I would recommend changing the font to Courier or another fixed-width font and turning off spell-checking, since the file is less readable without those modifications. If you DON'T use OpenOffice, you'd have an interesting problem -- as far as I know, MS Excel isn't as flexible with its importing (and parsing) options. But I may be wrong. If you have OpenOffice but prefer MS Excel, you can of course, export the newly created spreadsheet to an Excel document.
 
Old 05-28-2008, 01:36 AM   #7
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
If you don't think using the GUI is a sin, then kpackage is pretty handy. I'm not sure if it is still included in Slack 12.1, but it was there in 12.0.

It is definitely searchable and provides the version and description along side the name.
 
  


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
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 11:36 AM
List of installed packages? parent's_basement Debian 6 04-29-2008 05:04 PM
how to list packages installed? scuzzo84 Debian 8 01-17-2006 05:17 PM
How to list all installed packages? bp12345 Debian 2 08-15-2005 08:06 AM
List all installed Packages? mikeshn Linux - General 1 12-02-2003 10:31 PM

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

All times are GMT -5. The time now is 02:09 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