You are not logged in.
Pages: 1
bash-3.2# lspci
bash: lspci: command not found
bash-3.2# pacman -S lspci
lspci package not found, searching for group...
error: 'lspci': not found in sync db
How di I get lspci to work?
Green horn here lol
Offline
I guess pciutils
Last edited by xisal (2009-01-31 01:22:13)
Offline
Thanks for a quick reply,
I installed pciutils but still get the same when trying lspci
Do I need to reboot or load some deamon/modual?
Offline
check if you have it installed:
pacman -Ql | grep lspci
Offline
pacman -Qo /usr/sbin/lspci
/usr/sbin/lspci is owned by pciutils 3.0.3-1
Just confirm if /usr/sbin is in path:
echo $PATH
Offline
check if you have it installed:
pacman -Ql | grep lspci
bash-3.2# pacman -Ql | grep lspci
pciutils /usr/sbin/lspci
pciutils /usr/share/man/man8/lspci.8.gz
bash-3.2# lspci
bash: lspci: command not found
Offline
Thanks for a quick reply,
I installed pciutils but still get the same when trying lspciDo I need to reboot or load some deamon/modual?
Logging out than back in will probably do the trick. Or maybe running ldconfig as root.
Offline
pacman -Qo /usr/sbin/lspci /usr/sbin/lspci is owned by pciutils 3.0.3-1
Just confirm if /usr/sbin is in path:
echo $PATH
bash-3.2# pacman -Qo /usr/sbin/lspci
/usr/sbin/lspci is owned by pciutils 3.0.3-1
bash-3.2# echo $PATH
/usr/ucb:/bin:/usr/bin:/etc
Offline
OK, I rebooted and still no luck
Offline
edit /etc/profile and verify PATH.
# Set our default path
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
export PATH
Then logout and login again.
Offline
edit /etc/profile and verify PATH.
# Set our default path PATH="/bin:/usr/bin:/sbin:/usr/sbin" export PATH
Then logout and login again.
You can also "source /etc/profile" as root to implement changes.
Offline
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
thats what I have in there, is it not the correct path?
PS Appreciate your quick replys guys
Offline
try using
/usr/sbin/lspci
as root when executing lspci.
Last edited by ahcaliskan (2009-01-31 00:59:07)
Offline
OK /usr/sbin/lspci works but lspci still dont
Offline
"etc-update"?
http://www.linux-solved.com/post/lspci- … 10921.html
I believe that you need to update somthing in etc.
Offline
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
thats what I have in there, is it not the correct path?
Yes, it is. but your previous path was wrong:
/usr/ucb:/bin:/usr/bin:/etc
Check ~/.bash_profile or other script, i don't know
Just login, then as root source /etc/profile, like skottish said. And try again.
Last edited by xisal (2009-01-31 01:14:14)
Offline
source /etc/profile
OK this worked
bash-3.2# source /etc/profile
[root@myhost ~]# lspci
00:00.0 Host bridge: Intel Corp......
thanks guys!
Offline
Pages: 1