環境:CentOS 6.5centos
[root@localhost ~]# yum -y localinstall epel-release-6-8.noarch.rpm [root@localhost ~]# yum list| grep epel |wc -l 11461 [root@localhost ~]# yum -y install inxi [root@localhost ~]# man inxi [root@localhost ~]# inxi -r //顯示軟件倉庫列表 Repos: Active yum sources in file: /etc/yum.repos.d/CentOS-Base.repo base ~ http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os updates ~ http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates extras ~ http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras Active yum sources in file: /etc/yum.repos.d/epel.repo epel ~ https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch [root@localhost ~]# [root@localhost ~]# inxi -W Asia,Shenzhen //獲取天氣信息 Weather: Conditions: F ( C) Time: June 1, 3:51 PM [root@localhost ~]# [root@localhost ~]# inxi --help |grep '^\-F' -F Full output for inxi. Includes all Upper Case line letters, plus -s and -n. Does not show extra verbose [root@localhost ~]# [root@localhost ~]# inxi -F //輸出全部硬件信息
感謝原做者,出自:http://os.51cto.com/art/201505/477735.htmbash