Re: slack ups
By: Angus McLeod to Flazmot on Thu Jan 17 2008 12:19 am
Re: slack ups
By: Flazmot to All on Wed Jan 16 2008 17:01:00
installpkg ftw
installpkg wtf?
Slackware's package management is the tightest and lightest going. It handles .tgz files it unzips to root.
bt ~ # mkdir bin
bt ~ # touch bin/newprog
bt ~ # tar cvzf newprog.tgz ./bin
./bin/
./bin/newprog
bt ~ # installpkg newprog.tgz
Installing package newprog...
PACKAGE DESCRIPTION:
bt ~ # whereis newprog
newprog: /bin/newprog
bt ~ # removepkg newprog
Removing package /var/log/packages/newprog...
Removing files:
--> Deleting /bin/newprog
bt ~ # whereis newprog
newprog:
Magic?!
However, you must include ./ in front of the directories being archived
(./bin not just bin) or the slackware package manager truncates the first two bytes of each pathname after installing its contents, preventing automated removal. This bug exists in Backtrack 2 from Slax from Slackware 11.0 and may exist elsewhere. I've included this addendum so fellow slackwhores might benefit from the lesson I learned assembling my example.
Weird! I learned something! :O
---
þ Synchronet þ The DarkSide BBS ***
telnet://darkside.dtdns.net