[Bug 988190] New: binary missing /usr/sbin/lspci
http://bugzilla.opensuse.org/show_bug.cgi?id=988190 Bug ID: 988190 Summary: binary missing /usr/sbin/lspci Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: ujin981@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- After fresh install of tumbleweed I struggled to find lspci command: linux-pae6:~ # find /usr/bin -name lspci linux-pae6:~ # find /usr/sbin -name lspci linux-pae6:~ # which lscpu /usr/bin/lscpu linux-pae6:~ # ls /usr/bin/ls* /usr/bin/ls /usr/bin/lsattr /usr/bin/lsblk /usr/bin/lscpu /usr/bin/lsdiff /usr/bin/lsinitrd /usr/bin/lsipc /usr/bin/lslocks /usr/bin/lslogins /usr/bin/lsmod /usr/bin/lsns /usr/bin/lsof /usr/bin/lss16toppm /usr/bin/lsscsi linux-pae6:~ # So I tried looking for it in repos: linux-pae6:~ # zypper se lspci Loading repository data... Reading installed packages... No matching items found. linux-pae6:~ # zypper se --provides lspci Loading repository data... Reading installed packages... No matching items found. linux-pae6:~ # No luck. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=988190
Eugene Vikhman
http://bugzilla.opensuse.org/show_bug.cgi?id=988190
http://bugzilla.opensuse.org/show_bug.cgi?id=988190#c1
Martin Pluskal
http://bugzilla.opensuse.org/show_bug.cgi?id=988190
http://bugzilla.opensuse.org/show_bug.cgi?id=988190#c2
Eugene Vikhman
lscpi is, was and will be in /sbin/lspci.
Calling lspci (as non privileged user) gives you following: # lspci Absolute path to 'lspci' is '/sbin/lspci', so running it may require superuser privileges (eg. root).
Furthermore, please note that this is not support forum, but place to report issues with software.
linux-pae6:~ # ls /sbin/lspci ls: cannot access '/sbin/lspci': No such file or directory linux-pae6:~ # find / -name lspci linux-pae6:~ # cat /etc/issue issue issue.net linux-pae6:~ # cat /etc/issue Welcome to openSUSE 20160703 "Tumbleweed" - Kernel \r (\l). linux-pae6:~ # cat /proc/version Linux version 4.6.2-1-default (geeko@buildhost) (gcc version 6.1.1 20160601 [gcc-6-branch revision 236989] (SUSE Linux) ) #1 SMP PREEMPT Fri Jun 10 08:12:44 UTC 2016 (2a68ef0) linux-pae6:~ # whoami root linux-pae6:~ # -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=988190
http://bugzilla.opensuse.org/show_bug.cgi?id=988190#c3
--- Comment #3 from Peter Simons
http://bugzilla.opensuse.org/show_bug.cgi?id=988190
http://bugzilla.opensuse.org/show_bug.cgi?id=988190#c4
--- Comment #4 from Eugene Vikhman
I just ran these commands on openSUSE 20160709 "Tumbleweed" x86_64:
# rm /sbin/lspci # zypper in --force pciutils Loading repository data... Reading installed packages... Forcing installation of 'pciutils-3.5.1-1.2.x86_64' from repository 'Main Repository (OSS)'. Resolving package dependencies...
The following package is going to be reinstalled: pciutils
1 package to reinstall. Overall download size: 69.8 KiB. Already cached: 0 B. No additional space will be used or freed after the operation. Continue? [y/n/? shows all options] (y): Retrieving package pciutils-3.5.1-1.2.x86_64 (1/1), 69.8 KiB (132.0 KiB unpacked) Retrieving: pciutils-3.5.1-1.2.x86_64.rpm ........................................................[done] Checking for file conflicts: .....................................................................[done] (1/1) Installing: pciutils-3.5.1-1.2.x86_64 ......................................................[done] # ls -l /sbin/lspci -rwxr-xr-x 1 root root 78096 Jun 15 16:12 /sbin/lspci
This suggests that https://build.opensuse.org/package/show/openSUSE:Factory/pciutils *does* include /sbin/lspci.
THANK YOU!! It was my mistake to not specify the full path to zypper when looking for a provider of lspci command: linux-pae6:~ # which lspci which: no lspci in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/games) linux-pae6:~ # zypper in pciutils Retrieving repository 'openSUSE-20160703-0' metadata ..........................................................................................[done] Building repository 'openSUSE-20160703-0' cache ...............................................................................................[done] Retrieving repository 'openSUSE-Tumbleweed-Non-Oss' metadata ..................................................................................[done] Building repository 'openSUSE-Tumbleweed-Non-Oss' cache .......................................................................................[done] Loading repository data... Reading installed packages... Resolving package dependencies... The following 3 NEW packages are going to be installed: libpci3 pciutils pciutils-ids 3 new packages to install. Overall download size: 301.0 KiB. Already cached: 0 B. After the operation, additional 1.2 MiB will be used. Continue? [y/n/? shows all options] (y): Retrieving package pciutils-ids-20160701-1.1.noarch (1/3), 195.8 KiB (1011.7 KiB unpacked) Retrieving: pciutils-ids-20160701-1.1.noarch.rpm ..............................................................................................[done] Retrieving package libpci3-3.5.1-1.2.x86_64 (2/3), 35.4 KiB ( 51.4 KiB unpacked) Retrieving: libpci3-3.5.1-1.2.x86_64.rpm ......................................................................................................[done] Retrieving package pciutils-3.5.1-1.2.x86_64 (3/3), 69.8 KiB (132.0 KiB unpacked) Retrieving: pciutils-3.5.1-1.2.x86_64.rpm .......................................................................................[done (542.1 KiB/s)] Checking for file conflicts: ..................................................................................................................[done] (1/3) Installing: pciutils-ids-20160701-1.1.noarch ............................................................................................[done] (2/3) Installing: libpci3-3.5.1-1.2.x86_64 ....................................................................................................[done] (3/3) Installing: pciutils-3.5.1-1.2.x86_64 ...................................................................................................[done] linux-pae6:~ # which lspci /sbin/lspci linux-pae6:~ # zypper se --provides lspci Loading repository data... Reading installed packages... No matching items found. linux-pae6:~ # zypper se --provides /sbin/lspci Loading repository data... Reading installed packages... S | Name | Summary | Type --+----------+------------------------------------+-------- i | pciutils | PCI utilities for the Linux Kernel | package linux-pae6:~ # -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=988190
http://bugzilla.opensuse.org/show_bug.cgi?id=988190#c5
Peter Simons
participants (1)
-
bugzilla_noreply@novell.com