[SOLVED] slackpkg to update 14.1 system to get security updates
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.
slackpkg to update 14.1 system to get security updates
I wanted to get security updates that have been added to Slack 14.1 so I thought that slackpkg may work for that but wanted to make sure I did not misunderstand how it works.
If I have it pointed to a mirror that looks in /slackware/slackware64-14.1/ then if I run slackpkg upgrade all will that get only the packages that have been updated ? Should you run install-new first ?
Will this cluster bomb the system or is this going to work?
I found a few threads that seem to indicate that this is supposed to work
If you have installed additional programs from Slackbuids, Alien Bob's repos, or other sources, you might want to take a look at the comments in /etc/slackpkg/blacklist. After the upgrade script runs, it will ask you whether you want to keep or overwrite the config files for upgraded packages. I normally select "p" for prompt and get prompted for each file, so I can elect not to overwrite those that I have modified.
You can run the commands separately or as a script. If as a script, do not run it unattended, as it requires user interaction.
I should mention that my 14.1 box is anything but bog standard. Well anyway I have multimedia editing software and virtualization software installed. I tried the 14.2 RC1 in a virtual machine first So far so good.
Actually now that I think about it I got all kinds of things I don't think about until I need them
I am not looking forward to upgrading to 14.2 (well actually I am, just hate to break everything)
I am not looking forward to upgrading to 14.2 (well actually I am, just hate to break everything)
That's why I run --Current. Sometimes--very rarely--stuff breaks, because it's a testing version, but I can live with that if I don't have to upgrade from one version to another.
The last time I tried a Slackware version upgrade, I ended up running Debian because I broke the upgrade and took the easy way out. I got no beef with Debian--it's my second favorite after Slack--but I'm quite happy with --Current.
I've always managed the "upgrade" by having a separate /home partition and doing a full install (but not formatting /home). I save /etc and /var to /home/user/ for quick reference and then recompile any SBo packages after the install. I also document system changes, so it's not too time consuming (usually an hour or two) to get the system back to a similar state.
And current doesn't have any packages in patches so what is slackpkg upgrade patches actually used for?
patches is used for stable (released) versions. In case of current the new packages replaces the old one in whatever subdirectory (a, ap, etc.) it was. Phenixia2003 pointed out that this command can be used for Slackware stable , i.e. not for Slackware current.
But, as it was pointed out already, I use
slackpkg update
slackpkg install-new
slackpkg upgrade-all
to upgrade 14.1 on my little netbook and nothing is missed because of it being in the patches directory.
The exact wording was
so "slackpkg upgrade-all" and "slackpkg upgrade patches" are equal.
I agree so I asked the obvious. What is slackpkg upgrade packages really good for?
You can get "No such file or directory" if you try to run x86_64 binary on i?86 architecture or vise versa (without multilib).
Are you sure the system before update was Slackware64 (64-bit) and not Slackware (32-bit)?
Not sure if this is related but I tried the slackpkg upgrade patches and now when I try to run GL games like doo3 I get weird errors.
glxgears runs so I don't know what the deal is but here is the error I get
/usr/local/bin/doom3: line 6: /usr/local/games/doom3/doom.x86: No such file or directory
This is not related to slackpkg upgrade patches. The issue you encounter is that you have upgraded your slackware64/multilib without blacklisting the multilib version of packages glibc/gcc. Therefore, slackpkg has superseded some of them to the version found in patches directory, and more precisely the packages below :
To fix that, you need to reinstall the multilib version of these packages. To prevent that kind of issue in the future, you must blacklist the multilib version of gcc/glibc by adding the lines below in /etc/slackpkg/blacklist :
Code:
[0-9]+alien
[0-9]+compat32
Alternatively, you can use the plugin slackpkg+ to manage the multilib (and more). For more about it, read this page.
Note: As opposed to slackpkg upgrade patches, slackpkg upgrade-all would have superseded all mutlilib version of glibc/gcc packages with their pure 64-bit counterpart found in entire slackware64 tree, and not just in patches directory.
--
SeB
Last edited by phenixia2003; 03-23-2016 at 04:25 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.