环境:CentOS 6.5
[root@localhost ~]# yum -y localinstall epel-release-6-8.noarch.rpm[root@localhost ~]# yum list| grep epel |wc -l11461[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.htm