Automating slackpkg
What clever methods are any of you using to automate the process of updating patches through slackpkg? I've gotten to the point with my LAN and collection of virtual machines, some systems of which I might not run for weeks, that I need to consider some form of automation when I run any particular system.
This is a mixed environment of 12.2, 13.1, 13.37, 14.0, and current, both 32 and 64-bit. Thanks. :) |
Mirror the patches directories for the versions you have installed on one of the machines and use upgradepkg to do the job.
|
Found this thread while searching for something else, and I happened to wonder as well how to patch slackware (more or less replicate the behavior of windows update in windows)...
I understand what you said TobiSGD but I have a question regarding project philosophy (if I can call it like that). So on slack's mirrors, there are: -slackware specific folders (...12.1, 12.2, 13.0...) for each release that are updated with their specific patches -"-current" for the latest bleeding edge release -and there's the last release (as of now, 14.0). So are the slack team updating every releases with patches as well as having the last (14.0) and working on the -current in parallel? If I update my 13.37 with the patches that are in 13.37, will I end up more or less with a hybrid between the original 13.37 & 14.0? |
Quote:
cd $LOCAL_PATCHES_DIR upgradepkg *.txz Thanks. |
Quote:
Since newer versions of software are only installed when they are security releases (which is for example the case with Firefox) you will not end up with a mixed release, 13.37 will stay 13.37. |
Well, I use slackroll to manage slackware updates...
I did a script to check for updates and put it on a cronjob to check hourly, it can easily adapted to when there's new updates, just update everything. I'm not the best at bash script but here it is: Code:
#!/bin/sh |
You might want to exclude some packages from automatic upgrade. The kernel for instance, maybe X and drivers.
Having your kernel over written might result in some suprises :) |
Just a simple rc.local approach for single user desktop machines, which are used interactively:
Code:
if slackpkg check-updates | grep "ChangeLog" |
Quote:
Where does it gets the upgraded packages? Do you need to specify a folder where all new packages are stored? |
Found this in Slackware docs but haven't tried it yet
http://docs.slackware.com/slackware:...dated_packages |
All times are GMT -5. The time now is 08:43 PM. |