You are not logged in.

#1 2009-01-30 23:56:33

Vladman
Member
Registered: 2009-01-28
Posts: 118

lspci

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

#2 2009-01-31 00:00:25

xisal
Member
Registered: 2007-10-19
Posts: 24

Re: lspci

I guess pciutils

Last edited by xisal (2009-01-31 01:22:13)

Offline

#3 2009-01-31 00:04:30

Vladman
Member
Registered: 2009-01-28
Posts: 118

Re: lspci

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

#4 2009-01-31 00:06:52

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 174

Re: lspci

check if you have it installed:

pacman -Ql | grep lspci

Offline

#5 2009-01-31 00:12:39

xisal
Member
Registered: 2007-10-19
Posts: 24

Re: lspci

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

#6 2009-01-31 00:20:17

Vladman
Member
Registered: 2009-01-28
Posts: 118

Re: lspci

ahcaliskan wrote:

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

#7 2009-01-31 00:21:41

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: lspci

Vladman wrote:

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?

Logging out than back in will probably do the trick. Or maybe running ldconfig as root.

Offline

#8 2009-01-31 00:22:24

Vladman
Member
Registered: 2009-01-28
Posts: 118

Re: lspci

xisal wrote:
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

#9 2009-01-31 00:28:29

Vladman
Member
Registered: 2009-01-28
Posts: 118

Re: lspci

OK, I rebooted and still no luck mad

Offline

#10 2009-01-31 00:35:13

xisal
Member
Registered: 2007-10-19
Posts: 24

Re: lspci

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

#11 2009-01-31 00:36:15

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: lspci

xisal wrote:

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

#12 2009-01-31 00:49:38

Vladman
Member
Registered: 2009-01-28
Posts: 118

Re: lspci

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

#13 2009-01-31 00:55:22

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 174

Re: lspci

try using

 /usr/sbin/lspci

as root when executing lspci.

Last edited by ahcaliskan (2009-01-31 00:59:07)

Offline

#14 2009-01-31 01:01:55

Vladman
Member
Registered: 2009-01-28
Posts: 118

Re: lspci

OK /usr/sbin/lspci works but lspci still dont roll

Offline

#15 2009-01-31 01:03:32

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 174

Re: lspci

"etc-update"?

http://www.linux-solved.com/post/lspci- … 10921.html

I believe that you need to update somthing in etc.

Offline

#16 2009-01-31 01:05:50

xisal
Member
Registered: 2007-10-19
Posts: 24

Re: lspci

Vladman wrote:

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 sad

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

#17 2009-01-31 01:31:24

Vladman
Member
Registered: 2009-01-28
Posts: 118

Re: lspci

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

Board footer

Powered by FluxBB