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.
IMHO, I wouldn't use sudo; esp. not the generic config that ships with Slackware. You might have issues with some packages not installing correctly. pkgtool etc, as well as the packages themselves (esp. if they have a doinst.sh script) assume a fully root environment. Use "su -" to log into a root evironment.
Try "sudo -i pkgtool" to allow sudo to initialize root's login environment before executing pkgtool.
Eric
Yes, that will cause pkgtool to run with the full root environment, but I think you must still use the full path to pkgtool or it will not be found if /sbin is not in the user's PATH.
I am in Slackware 12.1 at the moment, and this works as I have noted in the past:
Code:
sudo -i pkgtools
-bash: pkgtools: No such file or directory
sudo -i /sbin/pkgtools
(works)
That has never made sense to me.
UPDATE: - On the other hand, I agree with others that for package management in particular, you should just su - to root, which is my own habit... (did you ever wish that you had not made a quick reply to a particular thread?... )
Yeah well Slackware moved on, and so did sudo. Please try it again on something like Slackware 14.1, you will notice the difference.
Eric
You are right, of course.
I keep my long-term use 12.1 instance intact since moving everything to 14.1. It is a live archive of projects that do not need to be, or cannot be updated. I happened to be working in there when I posted and remembered that particular quirk... should have kept quiet until rebooting.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.