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 08-18-2014, 03:14 PM   #1
m1m
Member
 
Registered: Jan 2011
Posts: 55

Rep: Reputation: 1
Is removepkg aware of files modified by doinst.sh?


As we all know slackware packages can contain doinst.sh, which is executed by installpkg/upgradepkg. Many scripts used to create symbolic links or rename some files included in the package.

If I remove this package using removepkg, does the files added/modified by doinst.sh will be also removed?
 
Old 08-18-2014, 03:19 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Nope.
 
Old 08-18-2014, 03:50 PM   #3
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Only symlinks created by makepkg or in the exact same format as links created by makepkg will be dealt with (removed unless present as a file or identical link in another package). For example, if you have upgraded your system several times across multiple releases, you will almost certainly have some old files from glibc since some files exist as lib{,64}/incoming/filename in the package and are renamed by the doinst.sh script. Fortunately *most* packages only rebuild caches or indexes if anything, and the only leftover files will be in /etc (since they usually have a .new extension in the package itself). There used to exist tools to identify orphaned files (and I'm sure some still exist, and you could certainly script it) but it takes a long time for such commands to complete on a full installation and there will be many false positives.
 
3 members found this post helpful.
Old 08-18-2014, 04:25 PM   #4
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
As T3slider says, there are tools that can do that. For example, slackroll has an orphan-search operation. It does take a lot of time to complete on the whole filesystem and false positives abound. Fortunately, you can restrict the search to a specific part of the tree. Unfortunately, /etc concentrates a lot of false positives.
 
3 members found this post helpful.
Old 08-19-2014, 10:35 AM   #5
m1m
Member
 
Registered: Jan 2011
Posts: 55

Original Poster
Rep: Reputation: 1
It's a pity that Slackware dosen't care of orphan files. I'm using my current system since version 13.something (+ patches upgrades). Lately I've been doing little cleanup and found some files from old packages.
 
  


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
Removepkg pkgtools and removepkg tar problem.. pepe41695 Linux - Newbie 3 08-26-2013 04:11 AM
files modified ? sachin1361 Linux - Enterprise 1 03-13-2007 03:11 AM
gnu make recompiles the source files fully even though the files are not modified yasothamani Linux - Software 4 02-07-2007 06:36 AM
removepkg: WARNING: Unique directory contains new files merchtemeagle Slackware 10 06-23-2005 08:51 AM
How would you check which files had been modified? entm Linux - General 1 05-14-2002 09:11 AM

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

All times are GMT -5. The time now is 02:07 PM.

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