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.
Running a production 12.2 Slack server and wanting to make sure I have all the latest security patches applied to it. Started playing with Slackpkg a bit but I'm really not sure want I am wanting to do other than "upgrade".
I chose the 12.2 mirror I wanted to use by editing out that particular file. I then ran "slackpkg update". After that was complete, I am lost from here.
I understand that I can pick and choose what individual files need updating. But what about a system wide entire update. Is it safe to run the "slackpkg upgrade-all" command in production environment??
I guess, I just don't really know WHAT I need updated. I would assume that if those patches are in the /patch directory, than they must be in there for a reason and I should be using them.
upgrade-all will only look for updates to packages that are currently installed, which on stable releases such as 12.2 should only be the stuff in patches. So yes it should be perfectly safe.
But you could just as easily use
Code:
slackpkg upgrade patches
Do be careful to take care of any "*.new" files. Slackpkg will notice these and prompt you on what action to take.
As with any production machine I'd expect you do have backups and it's a good idea to keep a copy of the currently installed package just in case something breaks.
With the stable release (12.2) as stated "upgrade-all" never caused me any problem. Now if you were asking about doing it in -current that micht be a different story
Thanks for the answers guys. I played around with the "slackpkg upgrade patches" on my laptop, but I'm a littler nervous about doing it on my server.
I don't use any "pre-built" packages for the core of my server. PHP, Apache, Postfix, Dovecot, & Pure-FTP were compiled and installed by me. Mysql was installed as a binary.
I guess since this is the "core" of my server, the "slackpkg upgrade patches" shouldn't really bother anything too much other than to update my current .tgz package set. Just don't want to break anything.
Then just manually upgrade the packages you want !
Add yourself to the Slackware security mailing list, so you will stay tuned about updates.
If you look at the changelogs, you will notice there's no TONS of updates, so updating your server will be quick, especially if you rsync the patches directory directly on the server. http://www.slackware.at/data/slackwa.../ChangeLog.txt
For example, you can write a cronjob which upgradepkg * in a directory XYZ every hour. Then you just have to copy selected packages from the rsync downloads to this directory XYZ. Of course, some of them will require a service restart, but anyway...
Then just manually upgrade the packages you want !
Add yourself to the Slackware security mailing list, so you will stay tuned about updates.
If you look at the changelogs, you will notice there's no TONS of updates, so updating your server will be quick, especially if you rsync the patches directory directly on the server. http://www.slackware.at/data/slackwa.../ChangeLog.txt
For example, you can write a cronjob which upgradepkg * in a directory XYZ every hour. Then you just have to copy selected packages from the rsync downloads to this directory XYZ. Of course, some of them will require a service restart, but anyway...
When you say manually upgrade them, are you still talking about Slackpkg or for me to download them by hand and intall them?
Doing a "slackpkg upgrade patches" gives a nice menu that I can select what I want to upgrade. This is, in fact, the same thing as doing it "manually", correct? There is just no cronjob doing the work...
Doing a "slackpkg upgrade patches" gives a nice menu that I can select what I want to upgrade. This is, in fact, the same thing as doing it "manually", correct? There is just no cronjob doing the work...
No it will just upgrade the ones you select this one time. There is no cronjob or any automated system (unless you add one).
If you have self-compiled packages that you don't want slackpkg to even list, let alone upgrade, add them to /etc/slackpkg/blacklist and you won't be bothered by them in the list.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.