Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 17 Oct 2017, 09:31
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Finding "orphaned" dependencies
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
sc0ttman


Joined: 16 Sep 2009
Posts: 2528
Location: UK

PostPosted: Mon 04 Sep 2017, 12:04    Post subject:  Finding "orphaned" dependencies
Subject description: using shell script
 

1. How do you find "orphaned" dependencies in Puppy Linux, on the command line?

These are packages which were installed as dependencies, but are no longer required by any other installed packages, and can be safely removed.

2. How do you find installed but outdated packages on the command line?
(packages that are installed but have newer version available in a supported repo)


I tried a few things, but only got as far as being able to list what are deps (installed by system as deps) and what are user install packages ... But as soon as a main pkg (vlc, for example) is uninstalled, then its deps (mariadb, for example) no longer got counted as deps..

I used something like:

Code:
 pkg -li | while read line; do [ "`cat /tmp/userpkgdeps| grep -m1 "^${line%%-*}"`" ] && echo 'pkg '$line' is dep' || echo 'pkg '$line' aint dep'; done   


But I couldn't get around the above problem.. And while I know that user installed packages can be found in /root/.packages/user-installed-packages, their deps might be spread across various repos, making it even harder ..

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 864
Location: Staffordshire

PostPosted: Tue 05 Sep 2017, 16:14    Post subject:  

This may help (from Technosaurus):
http://murga-linux.com/puppy/viewtopic.php?t=76827
It finds unused or little used libs.
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2528
Location: UK

PostPosted: Wed 06 Sep 2017, 13:32    Post subject:  

Keef wrote:
This may help (from Technosaurus):
http://murga-linux.com/puppy/viewtopic.php?t=76827
It finds unused or little used libs.

Thanks mate, helpful as always! .. Will defo get me on the right track,

Cheers Smile

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0273s ][ Queries: 12 (0.0032s) ][ GZIP on ]