You are not logged in.
Hello all,
locate (without an db update) shows me /usr/bin/uptime. A call delivers: "bash: uptime: command not found. There is no uptime in /usr/bin.
How can I restore uptime? Reinstalling bash does not help.
Thx a lot
wwn
Last edited by wwn (2014-01-14 20:52:43)
Offline
It's not part of bash. Reinstall procps-ng.
Offline
Perhaps you should run updatedb so that locate gives correct answers.
Then, check that the correct package is installed:
ewaller$@$odin ~ 1002 %uptime
12:48:47 up 1 day, 19:35, 4 users, load average: 0.15, 0.18, 0.21
ewaller$@$odin ~ 1003 %which uptime
/usr/bin/uptime
ewaller$@$odin ~ 1004 %pacman -Qo $(which uptime)
/usr/bin/uptime is owned by procps-ng 3.3.9-1
ewaller$@$odin ~ 1005 %Edit: Dang, I am slow today
Snaked again....
Last edited by ewaller (2014-01-14 20:52:14)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
thx a lot. it works.
Offline
$ pkgfile uptime
core/procps-ngOffline
pacman -Qo
has been of value ![]()
Offline
@ewaller
$ pacman -Qo uptime
/usr/bin/uptime is owned by procps-ng 3.3.9-1pacman doesn't need 'which' since version 3.4.0 https://projects.archlinux.org/pacman.g … /NEWS#n373 :-)
Offline
pacman doesn't need 'which' since version 3.4.0 https://projects.archlinux.org/pacman.g … /NEWS#n373 :-)
Thanks! good to know. Who says you can't teach an old dog new tricks.
I guess I could have really shown my vintage with pacman -Qo `which uptime` ![]()
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Not an Installation issue, moving to Apps and DEs...
Offline
pacman doesn't need 'which' since version 3.4.0 https://projects.archlinux.org/pacman.g … /NEWS#n373 :-)
Whoa! That is great! I too was still which'ing... though now everything is in /usr/bin.
Offline
pkgfile is more versatile
$ pacman -Qo mkinitcpio.conf
error: failed to find 'mkinitcpio.conf' in PATH: No such file or directory
$ pacman -Qo /etc/mkinitcpio.conf
/etc/mkinitcpio.conf is owned by mkinitcpio 16-2
$ pkgfile mkinitcpio.conf
core/mkinitcpio
extra/archisoas locate doesn't search some places by default and pkgfile should be faster than using 'find' to get the full path.
Offline