LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   src2pkg custom related question about removepkg (https://www.linuxquestions.org/questions/slackware-14/src2pkg-custom-related-question-about-removepkg-562683/)

matters 06-18-2007 10:26 AM

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 doinst.sh

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


Any suggestion is appreciated!

H_TeXMeX_H 06-18-2007 12:21 PM

Use 'makepkg' to make packages.

tuxdev 06-18-2007 01:14 PM

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.

gnashley 06-18-2007 02:24 PM

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.

matters 06-18-2007 05:24 PM

@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!

piete 06-18-2007 07:56 PM

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.


All times are GMT -5. The time now is 12:55 AM.