In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "the solution of bash: lsb_release: command not found error in CentOS". In daily operation, I believe that many people have doubts about the solution of bash: lsb_release: command not found error in CentOS. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the problem of "bash: lsb_release: command not found error solution in CentOS"! Next, please follow the editor to study!
Lsb_release can view system tools, but many systems don't have this command installed. Actually, I don't recommend it either.
Lsb_release to check the system version, because there is a better way. There is a reason why I do not recommend it. See below
Face solution:-bash: lsb_release: command not found method:
-bash: lsb_release: command not found means that the lsb_release command is not installed. So we use
Just install the yum command.
Let's first see which package this command belongs to:
The code is as follows:
# yum provides * / lsb_release
[root@ksharpdabu ~] # yum provides * / lsb_release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.psychz.net
* epel: mirrors.solfo.com
* extras: mirror.san.fastserv.com
* updates: mirror.lax.hugeserver.com
Base/filelists_db | 5.1 MB 00:00
Epel/filelists_db | 7.8 MB 00:00
Extras/filelists_db | 31 kB 00:00
Updates/filelists_db | 614 kB 00:00
Vz-base/filelists | 825B 00:00
Vz-updates/filelists | 3.0 kB 00:00
Redhat-lsb-core-4.0-7.el6.centos.i686: LSB base libraries support for CentOS
Repo: base
Matched from:
Filename: / usr/bin/lsb_release
Dkms-2.2.0.3-28.git.7c3e7c5.el6.noarch: Dynamic Kernel Module Support Framework
Repo: epel
Matched from:
Filename: / usr/lib/dkms/lsb_release
Dkms-2.2.0.3-26.el6.noarch: Dynamic Kernel Module Support Framework
Repo: installed
Matched from:
Filename: / usr/lib/dkms/lsb_release
Redhat-lsb-core-4.0-7.el6.centos.i686: LSB base libraries support for CentOS
Repo: installed
Matched from:
Filename: / usr/bin/lsb_release
As you can see, it belongs to the redhat-lsb package, so then use yum to install the package:
The code is as follows:
# yum install-y redhat-lsb
Intercept part of the running result
The code is as follows:
……
(71go 77): redhat-lsb-compat-4.0-7.el6.centos.i686.rpm | 10 kB 00:00
(72ap77): redhat-lsb-core-4.0-7.el6.centos.i686.rpm | 25 kB 00:00
(73ap77): redhat-lsb-graphics-4.0-7.el6.centos.i686.rpm | 12 kB 00:00
(74plus 77): redhat-lsb-printing-4.0-7.el6.centos.i686.rpm | 11 kB 00:00
(75ap77): urw-fonts-2.4-10.el6.noarch.rpm | 3.1 MB 00:00
(76ap77): xml-common-0.6.3-33.el6.noarch.rpm | 18 kB 00:00
(77 up 77): xorg-x11-font-utils-7.2-11.el6.i686.rpm | 73 kB 00:00
-
Total 9.3 MB/s | 104 MB 00:11
As you can see, in order to install a lsb_release, you have to install other dependency packages of 104m and so on. This is why I do not recommend this command to check the system.
Then, you can use lsb_release to view the system version
The code is as follows:
# lsb_release-r
Release: 6.5
For other uses, you can use "- h" to check it yourself.
At this point, the study of "bash: lsb_release: command not found error solution in CentOS" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.