LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Questions about SlackBuilds (https://www.linuxquestions.org/questions/slackware-14/questions-about-slackbuilds-4175506960/)

Pinonoir 06-03-2014 07:32 PM

Questions about SlackBuilds
 
I installed SLiM and libdvdcss yesterday. The only problem is that when I search for the package using slackpkg search it returns nothing. How can I put my slackbuild installed packages to where the package updater will find them?

moisespedro 06-03-2014 07:36 PM

As far as I know slackpkg only search on the official slackware repository. You could try using slackpkg+ and setting up your own local repository. Or you can go on the command line and type:

ls /var/log/packages | grep "name of the package"

Pinonoir 06-03-2014 07:52 PM

I tried ls /var/log/packages | grep, and it returned SLim, which is what I wanted. If I wanted to update it easier, how would I go about it?

moisespedro 06-03-2014 09:16 PM

You would modify the SlackBuild for the new version, build the package and upgrade it with:

upgradepkg /path/to/package.tgz

For more: http://www.slackbook.org/html/package-management.html

aaditya 06-03-2014 09:20 PM

I wrote a tool called asbt, which may help you..
http://slackbuilds.org/repository/14...t/?search=asbt

A more powerful tool is sbopkg
http://www.sbopkg.org/

maciuszek 06-04-2014 01:32 AM

If you don't care about being more update to date than the maintainer just follow the ChangeLog.

I do something similar to this:
#Log the date you checked for updates.
head -"$(grep -n '$dateoflastupdate' ChangeLog.txt)" | while read entry ; do sbname=`echo $entry | cut -d: -f1 | cut -d/ -f2` && if [ -n "$(ls /var/log/packages | grep $sbname)" ]; then echo $entry ;fi ;done

It should produce all the info you need when considering an update. just wget the scripts. resolve sources, build and upgrade.

*probably made an error since im on a phone and writing off the top of my head, nevertheless too tedius to double check.. You got the jist I hope :)

maciuszek 06-04-2014 01:44 AM

Yup I think the grep -n out will use a : as a delimeter, pipe the grep to cut -d: -f1

No need for single quptes in that grep -n especially if you'll be setting a var, if you'll just copy and paste keep them.

Also for that date of last update you need to use an existing sbo changelog date, log the current upon updates and use that :)

brianL 06-04-2014 05:39 AM

Do what aaditya advised, get sbopkg for processing and updating SlackBuilds.

http://www.sbopkg.org/

Pinonoir 06-04-2014 07:12 AM

Quote:

Originally Posted by brianL (Post 5182120)
Do what aaditya advised, get sbopkg for processing and updating SlackBuilds.

http://www.sbopkg.org/

Just woke up, will give it a try. Also, would it be advisable to move the packages from /tmp?

brianL 06-04-2014 07:55 AM

Quote:

Originally Posted by Pinonoir (Post 5182179)
Also, would it be advisable to move the packages from /tmp?

I suppose you could, if you want. In case you need to reinstall them in the near future.


All times are GMT -5. The time now is 04:52 AM.