Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-12-2017, 11:22 AM   #1
Registered: Aug 2017
Posts: 63

Rep: Reputation: Disabled
How to make package when removepkg also remove symlinks ?


I made package and I want to ask, how I can make when uninstall pkg with removepkg mypaket-1.0-x86_64-1.txz also symlinks that I make in to be removed ?

My file now contain:


local_link() {
( cd /usr/bin; rm -rf $NEW )
( cd /usr/bin; ln -sf $PAT$NEW $NEW )


local_link linkdb
local_link finddb

I want when I do removepkg linkdb and finddb symlinks from /usr/bin to be removed.

How I can do it ?
Old 11-12-2017, 12:10 PM   #2
Senior Member
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,284
Blog Entries: 4

Rep: Reputation: Disabled
You don't need to do *anything*. Don't create yourself!
  • makepkg finds your symlinks and creates the script for you and puts it in the package
  • installpkg copies the script to /var/log/scripts/yourpackage-version-arch-build
  • removepkg reads /var/log/scripts/yourpackage-version-arch-build and removes the symlinks
5 members found this post helpful.
Old 11-13-2017, 01:52 AM   #3
Registered: Aug 2017
Posts: 63

Original Poster
Rep: Reputation: Disabled
Thanks, it's work.


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
[SOLVED] current: removepkg fails to remove all files from kbd-1.15.3 package aaazen Slackware 14 09-16-2016 01:15 PM
Removepkg pkgtools and removepkg tar problem.. pepe41695 Linux - Newbie 3 08-26-2013 04:11 AM
Removepkg didn't remove pkg vdemuth Slackware 1 04-30-2012 01:07 PM
Upgrading to X11R6.8.0...Just a case of removepkg and make world? SBing Slackware 14 09-13-2004 02:10 AM
Package for 'installpkg,removepkg,makepkg," bongski55 Slackware 4 09-15-2003 07:00 AM > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration