Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-03-2014, 08:32 PM
|
#1
|
Member
Registered: May 2014
Posts: 209
Rep:
|
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?
|
|
|
06-03-2014, 08:36 PM
|
#2
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep:
|
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"
|
|
|
06-03-2014, 08:52 PM
|
#3
|
Member
Registered: May 2014
Posts: 209
Original Poster
Rep:
|
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?
|
|
|
06-03-2014, 10:16 PM
|
#4
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep:
|
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
|
|
|
06-04-2014, 02:32 AM
|
#6
|
Member
Registered: Nov 2010
Location: Toronto, Ontario
Distribution: Slackware + FreeBSD
Posts: 165
Rep:
|
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
|
|
|
06-04-2014, 02:44 AM
|
#7
|
Member
Registered: Nov 2010
Location: Toronto, Ontario
Distribution: Slackware + FreeBSD
Posts: 165
Rep:
|
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
|
|
|
06-04-2014, 06:39 AM
|
#8
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
Do what aaditya advised, get sbopkg for processing and updating SlackBuilds.
http://www.sbopkg.org/
|
|
|
06-04-2014, 08:12 AM
|
#9
|
Member
Registered: May 2014
Posts: 209
Original Poster
Rep:
|
Quote:
Originally Posted by brianL
|
Just woke up, will give it a try. Also, would it be advisable to move the packages from /tmp?
|
|
|
06-04-2014, 08:55 AM
|
#10
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
Quote:
Originally Posted by Pinonoir
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 06:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|