SlackwareThis 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.
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.
I've got 5 machines in my room running slackware, and every now and then a big load of packages (~50Mb onwards) need to be upgraded with slackware.
Its a pain and a waiste of bandwidth to run swaret on each machien and download them 20Mb or 50Mb five times on all five machines.
Is there a way i can download all the updates on one of the machines (and update it ofcourse), and let swaret use these downloaded updates instead of re-downloading them again from the web?
5 machines that is a good amount of machines. But anyways. In the default /etc/swaret.conf file it saves all of the downloads to /var/swaret. Then on one of the machines you can run samba, you run this on the machine with the most recently downloaded packages of course. Then from the client computers mount the network drive and cd to the mounted directory, and installpkg.
As far as automated, just let swaret run as a cron job with the -a switch after --upgrade; it will d/l and install all upgradeable packages automatically.
But what I believe you are asking about is something more along the lines of creating your own local repository. This is very doable, although I can't say exactly how. One machine can check and update the packages daily (sync up with mirrors) and the other machines would just need the path to that machine added to swaret.conf. I think I saw something concerning this in the faq or forum on the swaret site.
In swaret.conf on your 5 machines, you should be able to add a line (and comment out the rest) which points to the download folder on your main box. Then run swaret --update and swaret --upgrade -a - you could even set it as a cron job, if you feel adventurous.
I use NFS for syncing my packages between laptop and desktop, and have /var/cache as an export on my desktop to share to my laptop. Makes it pretty easy to do upgrades and the like, only downloading once.
I don't use swaret, though, I use slapt-get.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.