LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-05-2020, 07:39 PM   #1
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Rep: Reputation: Disabled
Installed dependencies list?


Is there an application in Slackware that I can run that will show me what packages have been installed in Slackware? I don't want to risk "repeating myself", so to speak, when installing packages and dependencies. Thanks in advance.
 
Old 06-05-2020, 08:10 PM   #2
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,310

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
There are some peoples attempts to do something like this, which may address their needs but maybe not anyone elses, and will they continue to maintain their work.

Basically with slackware You are the package manager.

ls -la /var/log/packages/*PACKAGE*
not found? - install

ls -la /var/log/packages/*DEPENDENCY*
not found? - install
 
Old 06-05-2020, 08:26 PM   #3
slac
Member
 
Registered: May 2019
Posts: 265

Rep: Reputation: Disabled
If you use the tools that Slackware has to install packages such as installpkg, removepkg, upgradepkg, and slackpkg, then you will find a list of all the installed packages and dependecies at: "/var/lib/pkgtools/packages". Knowing that, you can write a simple script to check for coincidences depending on the name of the program that you pass to the script, or just check manually. Just be careful with that directory.

Slackware does not come by default with a tool that manages dependencies, because it will be complicated to fit everybody's needs.
 
Old 06-07-2020, 12:14 AM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
If you're using sbopkg, you can pass the -k option to it instead of the -i, which will skip packages if their SBo version is already installed. I imagine other SBo building programs support something similar.
 
Old 06-07-2020, 04:27 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,901

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
just a comment: you probably won't know if a package was installed directly or as a dependency.
 
Old 06-07-2020, 04:56 AM   #6
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Rep: Reputation: 242Reputation: 242Reputation: 242
Quote:
Originally Posted by pan64 View Post
just a comment: you probably won't know if a package was installed directly or as a dependency.
Yes, I am afraid that there's no tool for Slackware showing some sort of dependency tree helping to identify packages that are no longer needed, because all packages depending on it have been removed from the system.

What I do is this:

1. I don't remove packages that are part of a Slackware standard install, except when I know what I am doing.
2. For software from SlackBuilds.org with "SBo" in the package name I check the README and info files, which usually have good information about dependencies for compile and run time.
3. For software from AlienBOB: read the docs, e.g. for his fantastic Ktown packages.
4. For other software, well, you are responsible for keeping an admin's journal, what you install and remove, when and why (and it's not wrong, at all, to do this even for the three above, too ).

gargamel
 
Old 06-07-2020, 09:41 AM   #7
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
You might this useful.

http://slackbuilds.org/repository/14.2/system/sbbdep/
 
3 members found this post helpful.
Old 06-08-2020, 04:38 AM   #8
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 15.0 running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
If you haven't cleaned out your /tmp directory in a while a look in there would give you an idea as to what you've been installing lately.
 
  


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
E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-official.list 221B Linux - Newbie 6 09-07-2017 12:14 PM
Issues with dependencies when installing php70-fpm. I have newer versions of the dependencies installed, but php70-fpm requires older KurtisKewl *BSD 9 05-02-2017 01:23 PM
[SOLVED] RPM Query: List installed package without dependencies limdel Linux - General 6 10-22-2012 04:37 AM
'E:Malformed line 54 in source list /etc/apt/sources.list (dist parse), E:The list of vsssuccess@gmail.com Linux - Desktop 1 11-17-2010 08:17 AM
yum and packagekit - list installed packages and dependencies allele Linux - Newbie 2 06-24-2009 03:31 PM

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

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