嘗試使用源碼包編譯安裝LAMP時,發現有些開發工具包已經預裝在系統中。本人的想法是連同開發工具包一併通過源碼包編譯安裝。故需知曉在最小化安裝的CentOS6/CentOS7中預裝了哪些軟件包,於是想通過Shell Script自動獲取並生成相關信息。使用Markdown語法,以列表形式列出當前系統已安裝的rpm包信息。


Personal Requests

  • 獲取CentOS系統上已經安裝的rpm包信息
  • rpm包的軟件包名,發行號,系統版本,平臺架構分別列出
  • 以表格形式展示
  • 生成後自動通過編輯器打開

Thinking

  • 通過命令mktemp -t在目錄/tmp下創建臨時文件,用於寫入生成的信息
  • 使用Here Document輸入多行內容
  • 格式採用Markdown語法
  • 通過命令rpm -qa獲取系統已安裝的rpm包列表,使用sort排序
  • 採用for循環進行循環操作
  • 使用bash內置字符串處理工具生成相關分類數據
  • 使用which --skip-alias獲取編輯器執行程序路徑

Implementations

數據來源可在腳本中設置

腳本下載 GitHub

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
# 2016.01.29 16:37 Sun
# https://lempstacker.com
# Use Script To Formatting And List Info Of RPM Packages Installed In CentOS

#使用何種編輯器
editorName='atom'

#創建臨時文件,此處爲Markdown文件類型
output=`mktemp -t outputXXXXXX.md`

#將用戶信息,系統信息追加到臨時文件中
cat >> $output <<EOF
### Creator Info
* **Creator**: $USER
* **CreateTime**: `date +'%F %T %z %Z'`

### System Info
* **OS Version**: `cat /etc/redhat-release | awk -F' ' '{print$1}'` `cat /etc/redhat-release | grep -E -o '\<([[:digit:]].)*'`
* **Kernel Version**: Kernel `uname -r | awk -F- '{print$1}'`

---
EOF

#生成表格頭部
cat >> $output <<EOF
### Package List
| No. | Packagename | Release | OS | Arch |
| :--- | :--- | :--- | :--- | :--- |
EOF

#file爲使用`rpm -qa`導出的列表
#file='/home/flying/test.txt'
#action=`cat $file`
action=`rpm -qa | sort`

#計數器
num=0

for i in $action;do
#platform architecture
arch=${i##*.}
#rest without arch info
withoutArch=${i%.$arch*}
osVersionTemp=${withoutArch##*.el}
#osVersion Distributor
osVersion='el'$osVersionTemp
#rest content name+release
name_release=${withoutArch//.$osVersion}
#packageName
packageName=${name_release/-[0-9][0-9-.]*/}
#release info
release=${name_release/$packageName-/}

#計數器自增
let num++
#依次是序號,軟件包名,發行號,系統版本,平臺架構,追加到臨時文件中
echo "| $num | \`$packageName\` | $release | $osVersion | $arch |" >> $output
done

#使用編輯器查看臨時文件內容
`which --skip-alias $editorName` $output

#腳本結束

Usage

命令格式bash BASH_NAME,生成的臨時文件在目錄/tmp

以下信息通過腳本實現,列出的是 最小化 安裝的CentOS 6, CentOS 7預裝的rpm軟件包信息。

CentOS 6

Creator Info

  • Creator: root
  • CreateTime: 2016-01-31 09:08:02 +0800 CST

System Info

  • OS Version: CentOS 6.7
  • Kernel Version: Kernel 2.6.32

Package List

No. Packagename Release OS Arch
1 acl 2.2.49-6 el6 x86_64
2 attr 2.4.44-7 el6 x86_64
3 audit 2.3.7-5 el6 x86_64
4 audit-libs 2.3.7-5 el6 x86_64
5 authconfig 6.1.12-23 el6 x86_64
6 b43-openfwwf 5.2-10 el6 noarch
7 basesystem 10.0-4 el6 noarch
8 bash 4.1.2-33 el6 x86_64
9 binutils 2.20.51.0.2-5.43 el6 x86_64
10 bridge-utils 1.2-10 el6 x86_64
11 bzip2 1.0.5-7 el6_0 x86_64
12 bzip2-libs 1.0.5-7 el6_0 x86_64
13 ca-certificates 2015.2.4-65.0.1 el6_6 noarch
14 centos-release 6-7 el6.centos.12.3 x86_64
15 checkpolicy 2.0.22-1 el6 x86_64
16 chkconfig 1.3.49.3-5 el6 x86_64
17 coreutils 8.4-37 el6 x86_64
18 coreutils-libs 8.4-37 el6 x86_64
19 cpio 2.10-12 el6_5 x86_64
20 cracklib 2.8.16-4 el6 x86_64
21 cracklib-dicts 2.8.16-4 el6 x86_64
22 cronie 1.4.4-15 el6 x86_64
23 cronie-anacron 1.4.4-15 el6 x86_64
24 crontabs 1.10-33 el6 noarch
25 cryptsetup-luks 1.2.0-11 el6 x86_64
26 cryptsetup-luks-libs 1.2.0-11 el6 x86_64
27 curl 7.19.7-46 el6 x86_64
28 cyrus-sasl 2.1.23-15 el6_6.2 x86_64
29 cyrus-sasl-lib 2.1.23-15 el6_6.2 x86_64
30 dash 0.5.5.1-4 el6 x86_64
31 db4 4.7.25-19 el6_6 x86_64
32 db4-utils 4.7.25-19 el6_6 x86_64
33 dbus-glib 0.86-6 el6 x86_64
34 dbus-libs 1.2.24-8 el6_6 x86_64
35 device-mapper 1.02.95-2 el6 x86_64
36 device-mapper-event 1.02.95-2 el6 x86_64
37 device-mapper-event-libs 1.02.95-2 el6 x86_64
38 device-mapper-libs 1.02.95-2 el6 x86_64
39 device-mapper-multipath 0.4.9-87 el6 x86_64
40 device-mapper-multipath-libs 0.4.9-87 el6 x86_64
41 device-mapper-persistent-data 0.3.2-1 el6 x86_64
42 dhclient 4.1.1-49.P1 el6.centos x86_64
43 dhcp-common 4.1.1-49.P1 el6.centos x86_64
44 diffutils 2.8.1-28 el6 x86_64
45 dracut 004-388 el6 noarch
46 dracut-kernel 004-388 el6 noarch
47 e2fsprogs 1.41.12-22 el6 x86_64
48 e2fsprogs-libs 1.41.12-22 el6 x86_64
49 efibootmgr 0.5.4-13 el6 x86_64
50 elfutils-libelf 0.161-3 el6 x86_64
51 ethtool 3.5-6 el6 x86_64
52 expat 2.0.1-11 el6_2 x86_64
53 file 5.04-21 el6 x86_64
54 file-libs 5.04-21 el6 x86_64
55 filesystem 2.4.30-3 el6 x86_64
56 findutils 4.4.2-6 el6 x86_64
57 fipscheck 1.2.0-7 el6 x86_64
58 fipscheck-lib 1.2.0-7 el6 x86_64
59 fuse 2.8.3-4 el6 x86_64
60 gamin 0.1.10-9 el6 x86_64
61 gawk 3.1.7-10 el6 x86_64
62 gdbm 1.8.0-38 el6 x86_64
63 glib2 2.28.8-4 el6 x86_64
64 glibc 2.12-1.166 el6 x86_64
65 glibc-common 2.12-1.166 el6 x86_64
66 gmp 4.3.1-7 el6_2.2 x86_64
67 gnupg2 2.0.14-8 el6 x86_64
68 gpgme 1.1.8-3 el6 x86_64
69 grep 2.20-3 el6 x86_64
70 groff 1.18.1.4-21 el6 x86_64
71 grub 0.97-94 el6 x86_64
72 grubby 7.0.15-7 el6 x86_64
73 gzip 1.3.12-22 el6 x86_64
74 hwdata 0.233-14.1 el6 noarch
75 info 4.13a-8 el6 x86_64
76 initscripts 9.03.49-1 el6.centos x86_64
77 iproute 2.6.32-45 el6 x86_64
78 iptables 1.4.7-16 el6 x86_64
79 iptables-ipv6 1.4.7-16 el6 x86_64
80 iputils 20071127-20 el6 x86_64
81 iscsi-initiator-utils 6.2.0.873-14 el6 x86_64
82 kbd 1.15-11 el6 x86_64
83 kbd-misc 1.15-11 el6 noarch
84 kernel 2.6.32-573 el6 x86_64
85 kernel-firmware 2.6.32-573 el6 noarch
86 keyutils-libs 1.4-5 el6 x86_64
87 kpartx 0.4.9-87 el6 x86_64
88 krb5-libs 1.10.3-42 el6 x86_64
89 less 436-13 el6 x86_64
90 libacl 2.2.49-6 el6 x86_64
91 libaio 0.3.107-10 el6 x86_64
92 libattr 2.4.44-7 el6 x86_64
93 libblkid 2.17.2-12.18 el6 x86_64
94 libcap 2.16-5.5 el6 x86_64
95 libcap-ng 0.6.4-3 el6_0.1 x86_64
96 libcom_err 1.41.12-22 el6 x86_64
97 libcurl 7.19.7-46 el6 x86_64
98 libdrm 2.4.59-2 el6 x86_64
99 libedit 2.11-4.20080712cvs.1 el6 x86_64
100 libffi 3.0.5-3.2 el6 x86_64
101 libgcc 4.4.7-16 el6 x86_64
102 libgcrypt 1.4.5-11 el6_4 x86_64
103 libgpg-error 1.7-4 el6 x86_64
104 libidn 1.18-2 el6 x86_64
105 libnih 1.0.1-7 el6 x86_64
106 libpciaccess 0.13.3-0.1 el6 x86_64
107 libselinux 2.0.94-5.8 el6 x86_64
108 libselinux-utils 2.0.94-5.8 el6 x86_64
109 libsemanage 2.0.43-5.1 el6 x86_64
110 libsepol 2.0.41-4 el6 x86_64
111 libss 1.41.12-22 el6 x86_64
112 libssh2 1.4.2-1 el6_6.1 x86_64
113 libstdc++ 4.4.7-16 el6 x86_64
114 libtasn1 2.3-6 el6_5 x86_64
115 libudev 147-2.63 el6 x86_64
116 libusb 0.1.12-23 el6 x86_64
117 libuser 0.56.13-5 el6 x86_64
118 libutempter 1.1.5-4.1 el6 x86_64
119 libuuid 2.17.2-12.18 el6 x86_64
120 libxml2 2.7.6-20 el6 x86_64
121 logrotate 3.7.8-23 el6 x86_64
122 lua 5.1.4-4.1 el6 x86_64
123 lvm2 2.02.118-2 el6 x86_64
124 lvm2-libs 2.02.118-2 el6 x86_64
125 m4 1.4.13-5 el6 x86_64
126 make 3.81-20 el6 x86_64
127 MAKEDEV 3.24-6 el6 x86_64
128 mdadm 3.3.2-5 el6 x86_64
129 mingetty 1.08-5 el6 x86_64
130 module-init-tools 3.9-25 el6 x86_64
131 mysql-libs 5.1.73-5 el6_6 x86_64
132 ncurses 5.7-4.20090207 el6 x86_64
133 ncurses-base 5.7-4.20090207 el6 x86_64
134 ncurses-libs 5.7-4.20090207 el6 x86_64
135 net-tools 1.60-110 el6_2 x86_64
136 newt 0.52.11-3 el6 x86_64
137 newt-python 0.52.11-3 el6 x86_64
138 nspr 4.10.8-1 el6_6 x86_64
139 nss 3.18.0-5.3 el6_6 x86_64
140 nss-softokn 3.14.3-22 el6_6 x86_64
141 nss-softokn-freebl 3.14.3-22 el6_6 x86_64
142 nss-sysinit 3.18.0-5.3 el6_6 x86_64
143 nss-tools 3.18.0-5.3 el6_6 x86_64
144 nss-util 3.18.0-1 el6_6 x86_64
145 openldap 2.4.40-5 el6 x86_64
146 openssh 5.3p1-111 el6 x86_64
147 openssh-clients 5.3p1-111 el6 x86_64
148 openssh-server 5.3p1-111 el6 x86_64
149 openssl 1.0.1e-42 el6 x86_64
150 p11-kit 0.18.5-2 el6_5.2 x86_64
151 p11-kit-trust 0.18.5-2 el6_5.2 x86_64
152 pam 1.1.1-20 el6 x86_64
153 passwd 0.77-4 el6_2.2 x86_64
154 pciutils-libs 3.1.10-4 el6 x86_64
155 pcre 7.8-7 el6 x86_64
156 pinentry 0.7.6-8 el6 x86_64
157 pkgconfig 0.23-9.1 el6 x86_64
158 plymouth 0.8.3-27 el6.centos.1 x86_64
159 plymouth-core-libs 0.8.3-27 el6.centos.1 x86_64
160 plymouth-scripts 0.8.3-27 el6.centos.1 x86_64
161 policycoreutils 2.0.83-24 el6 x86_64
162 popt 1.13-7 el6 x86_64
163 postfix 2.6.6-6 el6_5 x86_64
164 procps 3.2.8-33 el6 x86_64
165 psmisc 22.6-19 el6_5 x86_64
166 pth 2.0.7-9.3 el6 x86_64
167 pygpgme 0.1-18.20090824bzr68 el6 x86_64
168 python 2.6.6-64 el6 x86_64
169 python-iniparse 0.3.1-2.1 el6 noarch
170 python-libs 2.6.6-64 el6 x86_64
171 python-pycurl 7.19.0-8 el6 x86_64
172 python-urlgrabber 3.9.1-9 el6 noarch
173 readline 6.0-4 el6 x86_64
174 redhat-logos 60.0.14-12 el6.centos noarch
175 rootfiles 8.1-6.1 el6 noarch
176 rpm 4.8.0-47 el6 x86_64
177 rpm-libs 4.8.0-47 el6 x86_64
178 rpm-python 4.8.0-47 el6 x86_64
179 rsyslog 5.8.10-10 el6_6 x86_64
180 sed 4.2.1-10 el6 x86_64
181 selinux-policy 3.7.19-279 el6 noarch
182 selinux-policy-targeted 3.7.19-279 el6 noarch
183 setup 2.8.14-20 el6_4.1 noarch
184 shadow-utils 4.1.4.2-19 el6_6.1 x86_64
185 shared-mime-info 0.70-6 el6 x86_64
186 slang 2.2.1-1 el6 x86_64
187 sqlite 3.6.20-1 el6 x86_64
188 sudo 1.8.6p3-19 el6 x86_64
189 system-config-firewall-base 1.2.27-7.2 el6_6 noarch
190 sysvinit-tools 2.87-6.dsf el6 x86_64
191 tar 1.23-13 el6 x86_64
192 tcp_wrappers-libs 7.6-57 el6 x86_64
193 tzdata 2015e-1 el6 noarch
194 udev 147-2.63 el6 x86_64
195 upstart 0.6.5-13 el6_5.3 x86_64
196 ustr 1.0.4-9.1 el6 x86_64
197 util-linux-ng 2.17.2-12.18 el6 x86_64
198 vim-minimal 7.4.629-5 el6 x86_64
199 which 2.19-6 el6 x86_64
200 xfsprogs 3.1.1-16 el6 x86_64
201 xz-libs 4.999.9-0.5.beta.20091007git el6 x86_64
202 yum 3.2.29-69 el6.centos noarch
203 yum-metadata-parser 1.1.2-16 el6 x86_64
204 yum-plugin-fastestmirror 1.1.30-30 el6 noarch
205 zlib 1.2.3-29 el6 x86_64

CentOS 7

Creator Info

  • Creator: root
  • CreateTime: 2016-01-31 17:07:53 +0800 CST

System Info

  • OS Version: CentOS 7.2.1511
  • Kernel Version: Kernel 3.10.0

Package List

No. Packagename Release OS Arch
1 acl 2.2.51-12 el7 x86_64
2 aic94xx-firmware 30-6 el7 noarch
3 alsa-firmware 1.0.28-2 el7 noarch
4 alsa-lib 1.0.28-2 el7 x86_64
5 alsa-tools-firmware 1.0.28-2 el7 x86_64
6 audit 2.4.1-5 el7 x86_64
7 audit-libs 2.4.1-5 el7 x86_64
8 authconfig 6.2.8-10 el7 x86_64
9 avahi-autoipd 0.6.31-15 el7 x86_64
10 avahi-libs 0.6.31-15 el7 x86_64
11 basesystem 10.0-7 el7.centos noarch
12 bash 4.2.46-19 el7 x86_64
13 bind-libs-lite 9.9.4-29 el7 x86_64
14 bind-license 9.9.4-29 el7 noarch
15 binutils 2.23.52.0.1-55 el7 x86_64
16 biosdevname 0.6.2-1 el7 x86_64
17 btrfs-progs 3.19.1-1 el7 x86_64
18 bzip2-libs 1.0.6-13 el7 x86_64
19 ca-certificates 2015.2.4-71 el7 noarch
20 centos-logos 70.0.6-3 el7.centos noarch
21 centos-release 7-2.1511 el7.centos.2.10 x86_64
22 chkconfig 1.3.61-5 el7 x86_64
23 coreutils 8.22-15 el7 x86_64
24 cpio 2.11-24 el7 x86_64
25 cracklib 2.9.0-11 el7 x86_64
26 cracklib-dicts 2.9.0-11 el7 x86_64
27 cronie 1.4.11-14 el7 x86_64
28 cronie-anacron 1.4.11-14 el7 x86_64
29 crontabs 1.11-6.20121102git el7 noarch
30 cryptsetup-libs 1.6.7-1 el7 x86_64
31 curl 7.29.0-25 el7.centos x86_64
32 cyrus-sasl-lib 2.1.26-19.2 el7 x86_64
33 dbus 1.6.12-13 el7 x86_64
34 dbus-glib 0.100-7 el7 x86_64
35 dbus-libs 1.6.12-13 el7 x86_64
36 dbus-python 1.1.1-9 el7 x86_64
37 device-mapper 1.02.107-5 el7 x86_64
38 device-mapper-libs 1.02.107-5 el7 x86_64
39 dhclient 4.2.5-42 el7.centos x86_64
40 dhcp-common 4.2.5-42 el7.centos x86_64
41 dhcp-libs 4.2.5-42 el7.centos x86_64
42 diffutils 3.3-4 el7 x86_64
43 dmidecode 2.12-9 el7 x86_64
44 dnsmasq 2.66-14 el7_1 x86_64
45 dracut 033-359 el7 x86_64
46 dracut-config-rescue 033-359 el7 x86_64
47 dracut-network 033-359 el7 x86_64
48 e2fsprogs 1.42.9-7 el7 x86_64
49 e2fsprogs-libs 1.42.9-7 el7 x86_64
50 elfutils-libelf 0.163-3 el7 x86_64
51 elfutils-libs 0.163-3 el7 x86_64
52 ethtool 3.15-2 el7 x86_64
53 expat 2.1.0-8 el7 x86_64
54 file 5.11-31 el7 x86_64
55 file-libs 5.11-31 el7 x86_64
56 filesystem 3.2-20 el7 x86_64
57 findutils 4.5.11-5 el7 x86_64
58 fipscheck 1.4.1-5 el7 x86_64
59 fipscheck-lib 1.4.1-5 el7 x86_64
60 freetype 2.4.11-11 el7 x86_64
61 fxload 2002_04_11-16 el7 x86_64
62 gawk 4.0.2-4 el7 x86_64
63 gdbm 1.10-8 el7 x86_64
64 gettext 0.18.2.1-4 el7 x86_64
65 gettext-libs 0.18.2.1-4 el7 x86_64
66 glib2 2.42.2-5 el7 x86_64
67 glibc 2.17-105 el7 x86_64
68 glibc-common 2.17-105 el7 x86_64
69 glib-networking 2.42.0-1 el7 x86_64
70 gmp 6.0.0-11 el7 x86_64
71 gnupg2 2.0.22-3 el7 x86_64
72 gnutls 3.3.8-12 el7_1.1 x86_64
73 gobject-introspection 1.42.0-1 el7 x86_64
74 gpgme 1.3.2-5 el7 x86_64
75 grep 2.20-2 el7 x86_64
76 groff-base 1.22.2-8 el7 x86_64
77 grub2 2.02-0.29 el7.centos x86_64
78 grub2-tools 2.02-0.29 el7.centos x86_64
79 grubby 8.28-17 el7 x86_64
80 gsettings-desktop-schemas 3.14.2-1 el7 x86_64
81 gzip 1.5-8 el7 x86_64
82 hardlink 1.0-19 el7 x86_64
83 hostname 3.13-3 el7 x86_64
84 hwdata 0.252-8.1 el7 x86_64
85 info 5.1-4 el7 x86_64
86 initscripts 9.49.30-1 el7 x86_64
87 iproute 3.10.0-54 el7 x86_64
88 iprutils 2.4.8-1 el7 x86_64
89 iptables 1.4.21-16 el7 x86_64
90 iputils 20121221-7 el7 x86_64
91 irqbalance 1.0.7-5 el7 x86_64
92 ivtv-firmware 20080701-26 el7 noarch
93 iwl1000-firmware 39.31.5.1-43 el7 noarch
94 iwl100-firmware 39.31.5.1-43 el7 noarch
95 iwl105-firmware 18.168.6.1-43 el7 noarch
96 iwl135-firmware 18.168.6.1-43 el7 noarch
97 iwl2000-firmware 18.168.6.1-43 el7 noarch
98 iwl2030-firmware 18.168.6.1-43 el7 noarch
99 iwl3160-firmware 22.0.7.0-43 el7 noarch
100 iwl3945-firmware 15.32.2.9-43 el7 noarch
101 iwl4965-firmware 228.61.2.24-43 el7 noarch
102 iwl5000-firmware 8.83.5.1_1-43 el7 noarch
103 iwl5150-firmware 8.24.2.2-43 el7 noarch
104 iwl6000-firmware 9.221.4.1-43 el7 noarch
105 iwl6000g2a-firmware 17.168.5.3-43 el7 noarch
106 iwl6000g2b-firmware 17.168.5.2-43 el7 noarch
107 iwl6050-firmware 41.28.5.1-43 el7 noarch
108 iwl7260-firmware 22.0.7.0-43 el7 noarch
109 json-c 0.11-4 el7_0 x86_64
110 kbd 1.15.5-11 el7 x86_64
111 kbd-legacy 1.15.5-11 el7 noarch
112 kbd-misc 1.15.5-11 el7 noarch
113 kernel 3.10.0-327 el7 x86_64
114 kernel-tools 3.10.0-327 el7 x86_64
115 kernel-tools-libs 3.10.0-327 el7 x86_64
116 kexec-tools 2.0.7-38 el7 x86_64
117 keyutils-libs 1.5.8-3 el7 x86_64
118 kmod 20-5 el7 x86_64
119 kmod-libs 20-5 el7 x86_64
120 kpartx 0.4.9-85 el7 x86_64
121 krb5-libs 1.13.2-10 el7 x86_64
122 less 458-9 el7 x86_64
123 libacl 2.2.51-12 el7 x86_64
124 libassuan 2.1.0-3 el7 x86_64
125 libattr 2.4.46-12 el7 x86_64
126 libblkid 2.23.2-26 el7 x86_64
127 libcap 2.22-8 el7 x86_64
128 libcap-ng 0.7.5-4 el7 x86_64
129 libcom_err 1.42.9-7 el7 x86_64
130 libcroco 0.6.8-5 el7 x86_64
131 libcurl 7.29.0-25 el7.centos x86_64
132 libdaemon 0.14-7 el7 x86_64
133 libdb 5.3.21-19 el7 x86_64
134 libdb-utils 5.3.21-19 el7 x86_64
135 libdrm 2.4.60-3 el7 x86_64
136 libedit 3.0-12.20121213cvs el7 x86_64
137 libestr 0.1.9-2 el7 x86_64
138 libffi 3.0.13-16 el7 x86_64
139 libgcc 4.8.5-4 el7 x86_64
140 libgcrypt 1.5.3-12 el7_1.1 x86_64
141 libgomp 4.8.5-4 el7 x86_64
142 libgpg-error 1.12-3 el7 x86_64
143 libgudev1 219-19 el7 x86_64
144 libidn 1.28-4 el7 x86_64
145 libmnl 1.0.3-7 el7 x86_64
146 libmodman 2.0.1-8 el7 x86_64
147 libmount 2.23.2-26 el7 x86_64
148 libndp 1.2-4 el7 x86_64
149 libnetfilter_conntrack 1.0.4-2 el7 x86_64
150 libnfnetlink 1.0.1-4 el7 x86_64
151 libnl3 3.2.21-10 el7 x86_64
152 libpcap 1.5.3-8 el7 x86_64
153 libpciaccess 0.13.4-2 el7 x86_64
154 libpipeline 1.2.3-3 el7 x86_64
155 libproxy 0.4.11-8 el7 x86_64
156 libpwquality 1.2.3-4 el7 x86_64
157 libselinux 2.2.2-6 el7 x86_64
158 libselinux-utils 2.2.2-6 el7 x86_64
159 libsemanage 2.1.10-18 el7 x86_64
160 libsepol 2.1.9-3 el7 x86_64
161 libsoup 2.48.1-3 el7 x86_64
162 libss 1.42.9-7 el7 x86_64
163 libssh2 1.4.3-10 el7 x86_64
164 libstdc++ 4.8.5-4 el7 x86_64
165 libtasn1 3.8-2 el7 x86_64
166 libunistring 0.9.3-9 el7 x86_64
167 libuser 0.60-7 el7_1 x86_64
168 libutempter 1.1.6-4 el7 x86_64
169 libuuid 2.23.2-26 el7 x86_64
170 libverto 0.2.5-4 el7 x86_64
171 libxml2 2.9.1-5 el7_1.2 x86_64
172 linux-firmware 20150904-43.git6ebf5d5 el7 noarch
173 logrotate 3.8.6-6 el7 x86_64
174 lsscsi 0.27-3 el7 x86_64
175 lua 5.1.4-14 el7 x86_64
176 lzo 2.06-8 el7 x86_64
177 make 3.82-21 el7 x86_64
178 man-db 2.6.3-9 el7 x86_64
179 mariadb-libs 5.5.44-2 el7.centos x86_64
180 microcode_ctl 2.1-12 el7 x86_64
181 mozjs17 17.0.0-12 el7 x86_64
182 ncurses 5.9-13.20130511 el7 x86_64
183 ncurses-base 5.9-13.20130511 el7 noarch
184 ncurses-libs 5.9-13.20130511 el7 x86_64
185 nettle 2.7.1-4 el7 x86_64
186 NetworkManager 1.0.6-27 el7 x86_64
187 NetworkManager-libnm 1.0.6-27 el7 x86_64
188 NetworkManager-tui 1.0.6-27 el7 x86_64
189 NetworkManager-wifi 1.0.6-27 el7 x86_64
190 newt 0.52.15-4 el7 x86_64
191 newt-python 0.52.15-4 el7 x86_64
192 nspr 4.10.8-2 el7_1 x86_64
193 nss 3.19.1-18 el7 x86_64
194 nss-softokn 3.16.2.3-13 el7_1 x86_64
195 nss-softokn-freebl 3.16.2.3-13 el7_1 x86_64
196 nss-sysinit 3.19.1-18 el7 x86_64
197 nss-tools 3.19.1-18 el7 x86_64
198 nss-util 3.19.1-4 el7_1 x86_64
199 numactl-libs 2.0.9-5 el7_1 x86_64
200 openldap 2.4.40-8 el7 x86_64
201 openssh 6.6.1p1-22 el7 x86_64
202 openssh-clients 6.6.1p1-22 el7 x86_64
203 openssh-server 6.6.1p1-22 el7 x86_64
204 openssl 1.0.1e-42 el7.9 x86_64
205 openssl-libs 1.0.1e-42 el7.9 x86_64
206 os-prober 1.58-5 el7 x86_64
207 p11-kit 0.20.7-3 el7 x86_64
208 p11-kit-trust 0.20.7-3 el7 x86_64
209 pam 1.1.8-12 el7_1.1 x86_64
210 parted 3.1-23 el7 x86_64
211 passwd 0.79-4 el7 x86_64
212 pciutils-libs 3.2.1-4 el7 x86_64
213 pcre 8.32-15 el7 x86_64
214 pinentry 0.8.1-14 el7 x86_64
215 pkgconfig 0.27.1-4 el7 x86_64
216 plymouth 0.8.9-0.24.20140113 el7.centos x86_64
217 plymouth-core-libs 0.8.9-0.24.20140113 el7.centos x86_64
218 plymouth-scripts 0.8.9-0.24.20140113 el7.centos x86_64
219 policycoreutils 2.2.5-20 el7 x86_64
220 polkit 0.112-5 el7 x86_64
221 polkit-pkla-compat 0.1-4 el7 x86_64
222 popt 1.13-16 el7 x86_64
223 postfix 2.10.1-6 el7 x86_64
224 ppp 2.4.5-33 el7 x86_64
225 procps-ng 3.3.10-3 el7 x86_64
226 pth 2.0.7-23 el7 x86_64
227 pygobject3-base 3.14.0-3 el7 x86_64
228 pygpgme 0.3-9 el7 x86_64
229 pyliblzma 0.5.3-11 el7 x86_64
230 python 2.7.5-34 el7 x86_64
231 python-configobj 4.7.2-7 el7 noarch
232 python-decorator 3.4.0-3 el7 noarch
233 python-iniparse 0.4-9 el7 noarch
234 python-libs 2.7.5-34 el7 x86_64
235 python-perf 3.10.0-327 el7 x86_64
236 python-pycurl 7.19.0-17 el7 x86_64
237 python-pyudev 0.15-7 el7 noarch
238 python-urlgrabber 3.10-7 el7 noarch
239 pyxattr 0.5.1-5 el7 x86_64
240 qrencode-libs 3.4.1-3 el7 x86_64
241 readline 6.2-9 el7 x86_64
242 rootfiles 8.1-11 el7 noarch
243 rpm 4.11.3-17 el7 x86_64
244 rpm-build-libs 4.11.3-17 el7 x86_64
245 rpm-libs 4.11.3-17 el7 x86_64
246 rpm-python 4.11.3-17 el7 x86_64
247 rsyslog 7.4.7-12 el7 x86_64
248 sed 4.2.2-5 el7 x86_64
249 selinux-policy 3.13.1-60 el7 noarch
250 selinux-policy-targeted 3.13.1-60 el7 noarch
251 setup 2.8.71-6 el7 noarch
252 shadow-utils 4.1.5.1-18 el7 x86_64
253 shared-mime-info 1.1-9 el7 x86_64
254 slang 2.2.4-11 el7 x86_64
255 snappy 1.1.0-3 el7 x86_64
256 sqlite 3.7.17-8 el7 x86_64
257 sudo 1.8.6p7-16 el7 x86_64
258 systemd 219-19 el7 x86_64
259 systemd-libs 219-19 el7 x86_64
260 systemd-sysv 219-19 el7 x86_64
261 sysvinit-tools 2.88-14.dsf el7 x86_64
262 tar 1.26-29 el7 x86_64
263 tcp_wrappers-libs 7.6-77 el7 x86_64
264 trousers 0.3.13-1 el7 x86_64
265 tuned 2.5.1-4 el7 noarch
266 tzdata 2015g-1 el7 noarch
267 ustr 1.0.4-16 el7 x86_64
268 util-linux 2.23.2-26 el7 x86_64
269 vim-minimal 7.4.160-1 el7 x86_64
270 virt-what 1.13-6 el7 x86_64
271 which 2.20-7 el7 x86_64
272 wpa_supplicant 2.0-17 el7_1 x86_64
273 xfsprogs 3.2.2-2 el7 x86_64
274 xz 5.1.2-12alpha el7 x86_64
275 xz-libs 5.1.2-12alpha el7 x86_64
276 yum 3.4.3-132 el7.centos.0.1 noarch
277 yum-metadata-parser 1.1.4-10 el7 x86_64
278 yum-plugin-fastestmirror 1.1.31-34 el7 noarch
279 zlib 1.2.7-15 el7 x86_64

Expansion Proble

只是簡單列出rpm清單,並未做其它處理,比如比對分析。


Change Log

  • 2016.01.31 17:15 Sun Asia/Beijing
    • 初稿完成

  • Note Time: 2016.01.31 17:15 Sun
  • Note Location: Asia/Beijing
  • Writer: lempstacker