LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-30-2009, 09:29 AM   #1
invader44
Member
 
Registered: Dec 2008
Location: America
Distribution: Ubuntu 11.04
Posts: 64

Rep: Reputation: 15
slackware installed packages


hello,
I am trying to document one of the servers I work on that is running slackware 12.0. I didn't install it myself, I was wondering if there was a way to see what packages where selected or not selected when the installation was done. When you are at the setup program and choose install selected software. Is there any command or anything else that would let me see what packages where selected?
Thanks,
Vadder
 
Old 07-30-2009, 09:31 AM   #2
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,179

Rep: Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376
You can view what packages are installed on that particular system with pkgtool. Su to root, or login as root and then run pkgtool and choose the view packages option, and you will get a list of what is on the system.
 
Old 07-30-2009, 09:36 AM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
While this will also show you any packages that have been installed SINCE the installation, you can see ALL installed packages by looking in /var/log/packages (or giving a command ls /var/log/packages). If you want the listing in a text file, just redirect the output of the ls command into a file.

Does this help?

If I am not mistaken (from experience on my own Slack system) when you are at the setup screen (as if you were installing from CD) there is no way to see what is currently installed in the installed system on the HDD.

Sasha
EDIT - Pretty fast, Jeebizz!! Yes, if you are actually running the system, doing as Jeebizz says will also give you the same listing.

Last edited by GrapefruiTgirl; 07-30-2009 at 09:39 AM.
 
Old 07-30-2009, 10:38 AM   #4
invader44
Member
 
Registered: Dec 2008
Location: America
Distribution: Ubuntu 11.04
Posts: 64

Original Poster
Rep: Reputation: 15
Smile

Hi Grapefruitgirl,
Thanks for the advice, that is exactly what I wanted and you are right about the slackware setup screen, not being able to see what exact packages are that are currently installed.
Thanks,
vadder
 
Old 07-31-2009, 03:27 PM   #5
bilbod
Member
 
Registered: Mar 2003
Posts: 134

Rep: Reputation: 33
Quote:
Originally Posted by GrapefruiTgirl View Post
While this will also show you any packages that have been installed SINCE the installation, you can see ALL installed packages by looking in /var/log/packages (or giving a command ls /var/log/packages). If you want the listing in a text file, just redirect the output of the ls command into a file.
Code:
ls /var/log/packages -l |sort --key 6
That will sort by Date and Time. It should be pretty obvious which ones were installed by the installer and which were added later.
 
Old 07-31-2009, 05:46 PM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
bilbod,

What is the difference between "ls /var/log/packages -l |sort --key 6" and "ls -lrt /var/log/packages/" ?

invader44,

Don't really know what your goal is, but "slackpkg clean-system" will tell you everything
that has been installed that is NOT an official Slackware package according to the mirror
you setup in /etc/slackpkg/mirrors.
 
Old 07-31-2009, 05:58 PM   #7
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Quote:
Originally Posted by Bruce Hill View Post
... but "slackpkg clean-system" will tell you everything
that has been installed that is NOT an official Slackware package according to the mirror
you setup in /etc/slackpkg/mirrors.
Hi Bruce,

I have never run this particular slackpkg command, for fear of instantly uninstalling everything that isn't from the official tree.

Does this bring up the selection 'GUI' to let the user pick and choose, or simply go ahead and clean the system?

If the latter, then if the OP does not want this, but merely wants to KNOW what's on the system, then this would be a non-good idea, yes?

Sasha
 
Old 07-31-2009, 06:07 PM   #8
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Hi Sasha,

Congrats on the Mod status, btw.

It brings up the ncurses dialog, and yes, you must choose to remove them.
Code:
man slackpkg
<snip>
       clean-system
            This action removes all of the packages that don't belong to a standard Slackware installation.  With this option, you can clean up  your  system,  removing  third-
            party packages as well as any packages that were removed from the official Slackware package set.
            If you have some third party (or custom built) packages that you would like to keep, you can temporarily add them to the list of blacklisted packages before you run
            the 'clean-system' action.
It's really a good man page.
 
Old 07-31-2009, 06:08 PM   #9
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Rep: Reputation: 230Reputation: 230Reputation: 230
Quote:
Originally Posted by GrapefruiTgirl View Post
Hi Bruce,

I have never run this particular slackpkg command, for fear of instantly uninstalling everything that isn't from the official tree.

Does this bring up the selection 'GUI' to let the user pick and choose, or simply go ahead and clean the system?

If the latter, then if the OP does not want this, but merely wants to KNOW what's on the system, then this would be a non-good idea, yes?

Sasha

Whether you are installing or removing packages, you will always get a dialog gui with the packages to remove/install. So, it is safe to run slackpkg clean-system.
 
Old 07-31-2009, 06:17 PM   #10
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Quote:
Originally Posted by Bruce Hill View Post
Hi Sasha,

Congrats on the Mod status, btw.

It brings up the ncurses dialog, and yes, you must choose to remove them.
Code:
man slackpkg
<snip>
       clean-system
            This action removes all of the packages that don't belong to a standard Slackware installation.  With this option, you can clean up  your  system,  removing  third-
            party packages as well as any packages that were removed from the official Slackware package set.
            If you have some third party (or custom built) packages that you would like to keep, you can temporarily add them to the list of blacklisted packages before you run
            the 'clean-system' action.
It's really a good man page.
Hi Bruce, thanks,

I read the man page before I asked but it doesn't really clearly state that a selection can be made, other than the mention of blacklisting items.

While it sort of seemed appropriate that the dialog would have presented, as with other commands, without being sure, I just haven't ever (ever!!) tried it out

Thanks to you both. Another day wherein I have learned something

Sasha
 
Old 07-31-2009, 06:28 PM   #11
bilbod
Member
 
Registered: Mar 2003
Posts: 134

Rep: Reputation: 33
Quote:
Originally Posted by Bruce Hill View Post
bilbod,

What is the difference between "ls /var/log/packages -l |sort --key 6" and "ls -lrt /var/log/packages/" ?
The former sorts the packages alphabetically within the same time, the latter does not.

I did not know that apriori so i ran the following command

Code:
ls -lrt /var/log/packages/ >lslrt;ls -l /var/log/packages/ |sort --key 6 >lslsort; diff lslrt lslsort
After getting a non empty result, a closer examination revealed the above info.
 
Old 08-03-2009, 02:38 PM   #12
invader44
Member
 
Registered: Dec 2008
Location: America
Distribution: Ubuntu 11.04
Posts: 64

Original Poster
Rep: Reputation: 15
hello,
Thanks for all the replys, didn't know my question would get so many. I am just documenting how one of the servers is set up. The tech before me never documented how they did it. So I just wanted to know if I could see what packages where installed when slackware was installed, thats all. I just went to the /var/log/packages, using putty and copied the contents of the directory into notepad on a windows workstation. I just followed grapefruitgirls advice.
thanks,
vadder
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 slackware packages hogda02 Slackware 5 08-22-2006 02:11 PM
Sort installed packages by # of dependant packages installed brianez21 Debian 1 01-18-2006 05:06 PM
RPM is saying installed packages aren't installed ticky87 Linux - Newbie 4 07-26-2004 01:17 AM
slackware installed packages itsjustme Slackware 6 07-08-2003 11:57 PM

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

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