Centos6.5離線安裝lsb_release


參考 http://www.linuxfromscratch.org/blfs/view/systemd/postlfs/lsb-release.html
首先在其他電腦下載lsb_release源碼
地址 https://downloads.sourceforge.net/lsb/lsb-release-1.4.tar.gz
檢驗MD5 30537ef5a01e0ca94b7b8eb6a36bb1e4
上傳到Centos服務器。

檢驗MD5

[root@dvs0 dev]# md5sum lsb-release-1.4.tar.gz
30537ef5a01e0ca94b7b8eb6a36bb1e4 lsb
-release-1.4.tar.gz

解壓

[root@dvs0 dev]# tar -zxvf lsb-release-1.4.tar.gz
[root@dvs0 dev]# cd lsb
-release-1.4
[root@dvs0 lsb
-release-1.4]#

First fix a minor display problem:

[root@dvs0 lsb-release-1.4]# sed -i "s|n/a|unavailable|" lsb_release

下面開始安裝:

[root@dvs0 lsb-release-1.4]# ./help2man -N --include ./lsb_release.examples --alt_version_key=program_version ./lsb_release > lsb_release.1
[root@dvs0 lsb
-release-1.4]# install -v -m 644 lsb_release.1 /usr/share/man/man1 &&
> install -v -m 755 lsb_release /usr/bin &&
> install -v -m 755 help2man /usr/bin

安裝結果:

`lsb_release.1' -> `/usr/share/man/man1/lsb_release.1'
`lsb_release
' -> `/usr/bin/lsb_release'
`help2man
' -> `/usr/bin/help2man'

測試lsb_release

[root@dvs0 lsb-release-1.4]# lsb_release -a
LSB Version: unavailable
Distributor ID: CentOS
Description: CentOS release
6.5 (Final)
Release:
6.5
Codename: Final

如果安裝第一步提示:

[root@dvs0 lsb-release-1.4]# ./help2man -N --include ./lsb_release.examples --alt_version_key=program_version ./lsb_release > lsb_release.1
-bash: ./help2man: /usr/bin/perl: bad interpreter: No such file or directory

需要安裝perl,按照官網提示下載安裝即可。
https://www.cpan.org/src/README.html


注意!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。



 
粤ICP备14056181号  © 2014-2021 ITdaan.com