Slackware - ARMThis forum is for the discussion of Slackware ARM.
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.
The Dec 21 2017 upgrade of util-linux-2.31.1-arm-1.txz seems to be missing the /bin/hostname utility. Why did it disappear? As a result, my login prompt is showing "none" for the hostname.
The Dec 21 2017 upgrade of util-linux-2.31.1-arm-1.txz seems to be missing the /bin/hostname utility. Why did it disappear? As a result, my login prompt is showing "none" for the hostname.
Try this to see if it gives any output about your hostname:
If he is missing the binary in /bin, and apt-get is his package manager, that is certainly an appropriate course of action.
What issue do you have with apt-get? hostname is, in fact, a package
Code:
apt-cache search hostname
hostname - utility to set/show the host name or domain name
Code:
root@vuur:~# slackpkg search hostname
Looking for hostname in package list. Please wait... DONE
No package name matches the pattern.
My issue is that this is Slackware. Not Debian/Ubuntu? Your advice may be good for the latter, but on Slackware there is no advanced package tool (apt) command/function.
Code:
root@vesp:~# apt-get install hostname
-bash: apt-get: command not found
root@vuur:~# apt-cache search hostname
-bash: apt-cache: command not found
Why would you even want it on Slackware? Apt goes against the Slackware Way and takes control away from the Admin (i.e. me and you) with regards to package management.
Slackware uses 'pkgtool' (installpkg, removepkg, etc.) or 'slackpkg'. There is no 'apt-get' or 'apt-whatever' on my Slackware ARM system.
Last edited by Penthux; 01-02-2018 at 02:33 AM.
Reason: forgot some code
I'm guessing that OP forgot to do "slackpkg install-new" before "slackpkg upgrade-all" -- hostname was split out into a separate package somewhat recently.
The Dec 21 2017 upgrade of util-linux-2.31.1-arm-1.txz seems to be missing the /bin/hostname utility. Why did it disappear? As a result, my login prompt is showing "none" for the hostname.
The package was split out -- the information is in the Change Log - search for "hostname".
Well, we deal with Slackware ARM in this forum. So, unless the OP has posted in the wrong section then he'll need the ARM version of the package you're referring to: ftp://ftp.arm.slackware.com/slackwar...3.18-arm-1.txz.
Furthermore, as you correctly stated, this package only exists in Slackware ARM -current. So, if the OP is running Slackware ARM 14.2 (as I did previously) he will not be able to install, or find, this package for his system. Slackware ARM 14.2 is the soft float port and -current is the hard float port.
Apologies for being a stickler but I love to see accurate and helpful advice. The whole 'apt-get' thing is not relevant to Slackware and with a little more time and effort a lot more concise information could have been relayed. We got there in the end.
Apologies for being a stickler but I love to see accurate and helpful advice. The whole 'apt-get' thing is not relevant to Slackware and with a little more time and effort a lot more concise information could have been relayed. We got there in the end.
Yes, I missed that this was the Slackware ARM forum, I was just searching in the 'View New Posts' section, and saw no mention of the distro in the OP or OP's bio. Which is why I made sure to clarify that the OP should use his distro's package manager. Sorry for confusing you.
I thought I had relayed the information well enough to the OP that he could figure it out.
Regardless, the fact stands that in current, hostname is a package.
It may not be in 14.2, but OP has not stated what he is running. Or I missed it
I'm guessing that OP forgot to do "slackpkg install-new" before "slackpkg upgrade-all" -- hostname was split out into a separate package somewhat recently.
This is exactly what happened. Thank you for your reply. I didn't realize I had to run install-new, but that brings me to the question how to use it correctly. My system is minimal, and does not include the 'kde', 'xap' and a few other series. When I run install-new, it brings up every package in all the series, and I am not sure how to sort through that huge list to find out which packages to select. In this particular case it is obvious, because I know I am missing "hostname". But if I didn't know that, is there a way to bring up only the new packages that were not in the original installation of my system?
Fri Dec 29 08:08:08 UTC 2017
a/kernel-modules-armv7-4.14.9_armv7-arm-1.txz: Upgraded.
#located in dir 'a'
a/hostname-3.18-arm-1.txz: Added.
This is the latest version of the hostname utility, broken out into a new
package to get rid of duplication between util-linux and net-tools.
The above command will give you a list of all uninstalled Slackware packages on your system. From here you can select to install them.
Code:
root@tvar:~# man slackpkg
The above command will hopefully lead you to what you need to know.
Great, thank you. There is no way I would have figured out from the man page that "slackpkg install slackware" would bring up only the uninstalled packages. But when I do that, I get several hundred items to scroll through (because mine is a minimal system), and all of them are selected by default with the "*". I don't mean to sound lazy, but how do I deselect them all without having to deselect them one by one?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.