/bin/hostname is missing in recent upgrade
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.
|
Hard to say why it disappeared. You should just be able to reinstall from your distro repositories
Code:
apt-get install hostname |
Quote:
Code:
root@vuur:~# uname -n Code:
root@vuur:~# netconfig Code:
root@vuur:~# hostname vesp Quote:
Code:
root@vesp:~# apt-get install hostname |
Quote:
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 |
Quote:
Code:
root@vuur:~# slackpkg search hostname Code:
root@vesp:~# apt-get install hostname Slackware uses 'pkgtool' (installpkg, removepkg, etc.) or 'slackpkg'. There is no 'apt-get' or 'apt-whatever' on my Slackware ARM system. |
Which is why I said in that very same post
Quote:
https://packages.slackware.com/?r=sl....18-i586-1.txz |
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.
|
Quote:
|
Quote:
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. :hattip: |
Quote:
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 |
Quote:
|
Quote:
Code:
root@tvar:~# slackpkg install slackware Code:
root@tvar:~# man slackpkg |
Code:
Fri Dec 29 08:08:08 UTC 2017 change log |
@asarangan
https://www.linuxquestions.org/quest...nt-4175618768/ (it's still on the first page of the Slackware ARM Forum) |
Quote:
|
yep that is why I install everything. if you know the name of the prog I just google it then get it off a mirror download it then install it.
if you're just looking to find out what the hostname is or change it. Code:
$ cat /etc/HOSTNAME here is a copy of it from current (sight) http://slackware.uk/slackwarearm/sla...t/slackware/a/ just download it and install it then see what happens (package) http://slackware.uk/slackwarearm/sla...3.18-arm-1.txz |
Quote:
Code:
install-new Quote:
Code:
root@drie:~# nano -w /etc/slackpkg/slackpkg.conf Code:
# The ONOFF variable sets the initial behavior of the dialog interface. <edit> Found this command [option] solution which works great! All packages are deselected in the list. Code:
root@drie:~# slackpkg -onoff=off install slackware |
@Penthux
Quote:
@rworkman Quote:
https://docs.slackware.com/slackware:slackpkg Quote:
My simple proposal, which should be both necessary & sufficient is to add 2-3 extra words (warnings) in the Changelog and eventually modify slackpkg and display the changelog (directly inform with the last changes) before the package selection dialogue. |
|
https://www.linuxquestions.org/quest...nt-4175618768/
Or, never use Slackware current and install it only from time to time as new/fresh and don't provide drmozes with any feedback at all. Problem solved. ;) |
Quote:
Quote:
|
Quote:
In this particular case, it didn't uninstall the hostname utility either. /bin/hostname used to be part of the net-tools package. It was split out into a separate package called hostname. When the net-tools package was upgraded, it no longer contained /bin/hostname so that file was gone. If "slackpkg install-new" had been run *before* "slackpkg upgrade-all" then that would not have occurred. Quote:
|
@Exaga
I'm also a Slacker for more than 20 years (first used it in 1996 - switching from FreeBSD) but never cared about officially updating it or what the Slackware Team (I only knew about Patrick) was patching, but taking it as it is, installing new releases and recompiling/patching on my own whatever was requested (mainly kernel and some services packages I needed, sources I never took from Slackware, but from the official developers repositories). And that's why I love it, it never slapped my fingers, whatever I tried to hack on it. Please do read trough the thread here and see for yourself that slackpkg does break a system under -current, in that it removes a package that was previously bundled together with another and doesn't install it back as new: https://www.linuxquestions.org/quest...nt-4175618768/ Quote:
@rworkman Thanks for the reply, I agree with all your points, but the end effect for a user that is not reinstalling -current on every update (as suggested by drmozes) and is not aware about the install-new > upgrade-all sequence, which was documented only for system upgrades, nor is he warned in the changelog (maybe not even reading it before an update - which I don't, by the way, never remember the link), is that he'll get a system with some packages missing and will come over here on the forum and ask for help. That's why I proposed some minimal changes, just for directly informing & warning a simple user. Just a very minimalistic usability improvement, if you will. |
Quote:
Thanks. |
Quote:
https://www.linuxquestions.org/quest...2/#post5785494 Quote:
Quote:
https://www.linuxquestions.org/quest...8/#post5787566 Quote:
Quote:
And then, in the same post you actually made me feel uncomfortable in using slackpkg with your statement: Quote:
:) |
Quote:
I often reinstall the machine since I am the developer of the OS, and I test the installer when I build a new kernel (every couple of weeks, normally) - so I often have a fresh installation upon which to test any reported concerns. Each package is upgraded after it's built - the system isn't reinstalled after every package update. Also I have explained why I have made corrections in response to some of your posts: some of your statements are based on misunderstandings of how the system works, and if people follow some of your ideas such as symlinking libraries, they'll screw their system up. Anyway, I think that's enough of this. |
Quote:
People have tried to help and advise you but all you seem intent on doing is trying to discredit them and the work they do. I really don't know what your real issue is. Quote:
|
All times are GMT -5. The time now is 03:02 PM. |