Is there any command or way to upgrade all packages compiled and built manually?
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.
Is there any command or way to upgrade all packages compiled and built manually?
Hi, I am new in Linux and Slackware.
I want to know if there is any way to upgrade all packages that I compilled and built (With make, make install, etc)
And Also I want to know if there is any register of this packages (To know what I have installed)
There is a register of all the packages you have installed: that are the files in directories /var/log/packages and /var/log/scripts.[1]
But that works on the condition that you only use the Slackware tools to install them as only these tools update that register, mainly installpkg.
If you use the make, make install method instead of (possibly making yourself Slackware packages with makepkg or running the Slackbuilds @ http://slackbuilds.org then) using installpkg to install Slackware packages, the "packages" (actually, the binaries) that you install won't be registered anywhere.
[1] /var/log/removed_packages and /var/log/removed_scripts register packages removal.
Now for the way to upgrade: you will just use upgradepkg for genuine Slackware packages and also for the custom ones, but in the latter case you will have to build a new package first, unless you get an upgraded package from a trusted source.
Last edited by Didier Spaier; 05-01-2015 at 05:34 PM.
But packages that I build and installed manually (with make, etc) aren't displayed with pkgtool or when i do a ls of /var/log/packages
No they are not.
PS That's why Slackware users are encouraged to exclusively use Slackware tools to manage their packages, namely explodepkg, installpkg, makepkg, pkgtool, removepkg, upgradepkg and slackpkg. That way they are guaranteed for instance to always be able to cleanly remove a package, and more generally to put their system back in a previous consistent state if need be.
Last edited by Didier Spaier; 05-01-2015 at 06:06 PM.
Reason: Missing word added
Installing packages with "make install" is not considered to be a best practice, but if you do do it, the standard practice is to copy the source directories to /usr/local/src.
In that case, the command to list all "packages" you "installed" with "make install" would be "ls /usr/local/src".
As mentioned, it's better to use "make install" to build a Slackware package:
Code:
mkdir -p /tmp/packageName
make install DESTDIR=/tmp/packageName
cd /tmp/packageName
makepkg -l y -c n /tmp/package-version-arch.txz
Then you'll have a package that you can install with installpkg, and which will be under the control of Slackware's packaging tools. That's how SlackBuild scripts actually work.
As for how to list the contents of source tarballs that you've already make-installed into your filesystem and which you didn't save the source for, well, there's no way to do that on any distro. So stop doing that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.