LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-12-2013, 08:29 AM   #1
the_penguinator
Member
 
Registered: Jan 2009
Location: Canada
Distribution: slackware, OpenBSD, OSX
Posts: 233

Rep: Reputation: 25
managing -current upgrades for a small subnet


I manage a subnet for my class. 25 laptops of 4 different makes, different HD sizes, ram etc. We're wireless and I manually assign IP addresses in order to control access to the wireless router from outside my "sandbox". All the machines run -current, and while some might ask why, it's because I can! Have for a few years now.

Problem is that it is quite time consuming to manually upgrade all the machines.

I'm looking for clues as to how to semi-automate this process. Anything I can broadcast to all the machines in the subnet? Cron job running on each machine?
Cheers!
 
Old 02-12-2013, 02:57 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
You could set up a local repository by mirroring one of the public repositories with Alien Bob's Slackware Mirror script and then use a cron job to run slackpkg upgrade-all against your local mirror. That would be faster overall than having them connect to a public mirror individually and use less internet bandwidth.

I haven't done this automatically, but I think you should check first whether there are updates so you don't get any prompts coming back that you need to respond to.

All the usual warnings about automatically updating apply though - if you've been running -current for a few years you probably already knew that.

Last edited by gilead; 02-12-2013 at 02:59 PM.
 
2 members found this post helpful.
Old 02-12-2013, 04:11 PM   #3
maciuszek
Member
 
Registered: Nov 2010
Location: Toronto, Ontario
Distribution: Slackware + FreeBSD
Posts: 165

Rep: Reputation: 40
If you want safe.. Well by manually seeing whats being updated; you could to just fetch the upgrades on a machine ( allocate one for this ) put them on some kind of file server: if youre going to use slackpkg theres a download clp but you probably know that.

And in the same style gilead recommended have each machine do a cron job involveing pulling all of the fileserver, running upgradepkg against wherever, whatever is pulled ( of course there will be redundancies, but you could think of an alg for that if wanted ) .. N finally some kind of clean up would be nice

Last edited by maciuszek; 02-12-2013 at 04:13 PM.
 
Old 02-13-2013, 08:38 AM   #4
NeoMetal
Member
 
Registered: Aug 2004
Location: MD
Distribution: Slackware
Posts: 114

Rep: Reputation: 24
If you want to run the upgrade command manually but across all hosts you can use pssh to send parallel ssh commands
 
1 members found this post helpful.
Old 02-14-2013, 01:28 AM   #5
cendryon
Member
 
Registered: Aug 2005
Location: France
Distribution: Slackware64 current
Posts: 82

Rep: Reputation: 30
Hi

Here's how I do it.

I have a local mirror on my test machine, updated by a daily cron job thanks to mirror-slackware-current.sh.
slackpkg point to mirror1, where I run upgradepkg manually to see how it goes.

If everything's fine, I publish the updates to my LAN http mirror.
Other machines' slackpkg points to http://my.lan/mirror, and slackpg is run from cron job.

Kind of a "poor man deployment tool" without the hassle of advanced solutions like puppet.
I don't need a puppet-like tool for my family machines, but it might be worth the trouble for a larger network like yours.

Cheers
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware-current upgrades today. hitest Slackware 26 12-23-2012 03:37 PM
Less backlight steps after current upgrades brodo Slackware 3 07-29-2012 12:40 PM
managing a small network - 2 newbie questions prtc Linux - Software 1 08-11-2010 07:36 PM
libgmp and libpng in latest -current upgrades dive Slackware 37 03-05-2010 11:40 AM
Managing security updates and upgrades arobinson74 Slackware 8 10-19-2004 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration