Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 06-18-2007, 11:26 AM   #1
Registered: May 2007
Distribution: Slackware
Posts: 281

Rep: Reputation: Disabled
src2pkg custom related question about removepkg

Lets say i created a package, im wondering wheres directive that instruct removepkg to remove files ?

Ive packaged kernel modules a diff way, didnt use src2pkg but manually by creating /lib put modules inside, created slack.desc and

installation is preformed, modules are installed, but when i try to remove modules, its just skip it.

Any suggestion is appreciated!
Old 06-18-2007, 01:21 PM   #2
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284Reputation: 1284
Use 'makepkg' to make packages.
Old 06-18-2007, 02:14 PM   #3
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
If you go to /var/log/packages and look in the file corresponding to the package you installed, it should list all the files that it thinks is in your package and would be removed when uninstalled.
Old 06-18-2007, 03:24 PM   #4
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,811

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
Do that in some subdirectory, not in /, like /usr/src/mymodules.
Then put your install dir and lib/modules dirs inside that. Put the files in there. The cd into /usr/src/mymodules and run makepkg. Be sure to give a proper name-version-arch-build.tgz name for the package and the name part should match exactly the 'name:' entries in the slack-desc file.
Old 06-18-2007, 06:24 PM   #5
Registered: May 2007
Distribution: Slackware
Posts: 281

Original Poster
Rep: Reputation: Disabled
@gnashley shh i must go all the way again then
ill do it tomorrow, can you tell me whats the difference in process between makepkg and src2pkg, yet ive never done it under / but in /home/matters/testmodules/ ive put all but and then ive just tar.gz and then rename it to tgz that all i didnt run makepkg.

Im close to finish the project. its nice knowledge

read please my other post about package dependency maybe you know what i mean.

htexmex thanks for contribution too, im just too much in deep reason why is why and like to learn the process in betweeen )

Thanks to all others, ill post if there will be some problems!
Old 06-18-2007, 08:56 PM   #6
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
I believe files are only removed if they exist only in that package - ie, there is no other package where they're listed.

If you have a default kernel installed as a package, the modules will be in, let's say: /lib/modules/2.6.14

Now let's say you custom compile the same kernel, 2.6.14, then they'll end up in the same place, so when you removepkg mymodules it checks the list of files in packages in /var/log/packages and says "ahha, these exist in kernel-modules-that-came-with-slack.tgz, i shall leave them alone". So, you end up with the /var/log/packages/ entry for mymodules gone, but the modules it installed, probably not.

The solution to this would be to have a suffix on your kernel stuff which is an option somewhere ... you'd have to hope some nice poster will help out here or google it, because i don't recall.

... and so the princess kissed the frog who turned into a handsome prince, and they all lived happily ever after. The end. *zzZzzz*

And i hope yours is a happy ending too!

- Piete.


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
src2pkg has a new home! gnashley Slackware 19 07-16-2007 10:18 PM
where to download src2pkg matters Slackware 2 06-11-2007 07:29 AM
PkgBuild/src2pkg upgrade gnashley Slackware - Installation 1 10-20-2006 08:28 AM
RemovePkg Recursively? Kenji Miyamoto Slackware 3 05-23-2005 09:33 AM
removepkg alternative props666999 Slackware 2 11-10-2004 01:10 AM

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