按安装rpm的大小排序

按安装rpm的大小排序
.

0

linux命令:rpm -qa --queryformat '%{size} %{name}\n' | sort -rn -rn sort | %{name}\n' '%{size} --queryformat -qa rpm rpm -qa --queryformat '%{size} %{name}\n' | sort -rnrootopen.com
linux命令:rpm -qa --queryformat '%{size} %{name}\n' | sort -rn -rn sort | %{name}\n' '%{size} --queryformat -qa rpm rpm -qa --queryformat '%{size} %{name}\n' | sort -rnrootopen.com
uvei 2017-12-25 12:09:48
输出
150367672 mongodb-org-tools
120296447 glibc-common
59353839 mongodb-org-server
39286021 gcc
37287765 kernel-devel
34017183 mongodb-org-mongos
33617143 mongodb-org-shell
28036363 cmake
25225645 libicu
24704505 python-libs
23550049 perl
23172466 git
22548401 centos-logos
22146000 vim-common
22023594 systemd
21235410 binutils
17536648 samba-client-libs
17314215 gcc-c++
15685725 cpp
14585312 coreutils
14107624 glibc
11675108 glib2
10176350 perl-Encode
9389116 cracklib-dicts
9213393 libxml2-devel
8436525 libstdc++-devel
7994468 util-linux
6640098 gnupg2
5761223 yum
5029340 gettext
4896560 policycoreutils
4779631 man-pages
4543216 bind
4115361 shared-mime-info
4039349 libicu-devel
3665031 kernel-headers
3663634 bash
3513792 shadow-utils
3453946 groff-base
3267613 openssl-devel
3199756 openssl-libs
3077690 file-libs
3067376 net-snmp-libs
2838080 tar
2700837 glib2-devel
2686782 libxcb-devel
2677712 bind-libs
2621781 rpm
2620831 pam
2591674 nss
2567063 sudo
2555860 e2fsprogs
2502662 libxslt-devel
2501402 freetype-devel
2435850 gawk
2431715 firewalld
2342168 glibc-headers
2323761 libtool
2320371 autoconf
2298871 openssh-clients
2292114 vim-enhanced
2253171 ncurses-devel
2217413 authconfig
2168808 fetchmail
2154142 bison
2151920 net-snmp-agent-libs
2055533 wget
2049163 rsyslog
1988838 krb5-libs
1954088 libuser
1922563 nss-tools
1895813 samba
1892532 stix-fonts
1881912 slang
1874275 man-db
1855626 findutils
1853824 libdb
1798800 bind-libs-lite
1776646 tzdata
1731909 automake
1715901 nano
1710062 libxml2
1643144 perl-libs
1634845 sendmail
1549241 iptables
1546952 gettext-libs
1511679 xorg-x11-proto-devel
1505771 pcre-devel
1493073 initscripts
1492653 gettext-devel
1475532 pcre
1450050 openssh
1434702 ntp
1352219 samba-client
1337825 p11-kit
1335662 libX11-common
1325720 libX11
1316802 iproute
1241960 ca-certificates
1194787 grep
1160684 make
1147014 samba-common-tools
1145761 libunistring
1104386 python-devel
1101446 nss-softokn
1100103 libX11-devel
1084653 pygobject3-base
1081666 libstdc++
1075480 systemd-libs
1066324 glibc-devel
1065157 diffutils
1028216 ncurses-libs
1013055 openldap
1007049 elfutils-libelf
1005512 libxcb
960241 sendmail-cf
953804 tcpdump
948883 lsof
943088 openssh-server
938986 net-tools
936306 screen
917704 vim-minimal
898651 freetype
894751 dracut
887954 quota
874712 dbus
848122 dbus-python
838723 usermode
833715 openssl
814231 sqlite
804677 gobject-introspection
798130 xz
789499 krb5-devel
761428 flex
758630 procps-ng
749962 rsync
745291 libarchive
742760 libevent
742372 chkconfig
739336 samba-libs
738112 elfutils
734135 cups-libs
723983 cryptsetup-libs
707815 elfutils-libs
696634 setup
684462 cpio
677740 tcsh
661232 libsepol
657046 gmp
640207 lua
637707 libcurl-devel
630407 libidn
616101 libpng
607239 perl-Test-Harness
607048 rpm-libs
602972 libselinux-python
601208 sed
597727 libgcrypt
582944 hunspell
578056 fontconfig
556243 hunspell-en-GB
554528 gd
554279 mpfr
551130 hunspell-en
549311 hunspell-en-US
547534 gpgme
540028 curl
538320 perl-Pod-Simple
528124 nss-softokn-freebl
525707 m4
497582 libxslt
497025 python-urlgrabber
494499 info
486599 psmisc
482003 dhclient
477130 mailx
460408 readline
449752 samba-common
439378 ncurses
437261 p11-kit-trust
435128 libcurl
430105 libXt
429874 passwd
423170 libtasn1
417697 net-snmp-utils
411788 device-mapper-libs
397912 gettext-common-devel
396831 cyrus-sasl-lib
391155 bzip2-devel
387492 mlocate
373986 unzip
368577 iputils
365669 libevent-devel
363569 e2fsprogs-libs
361244 libidn-devel
356998 procmail
350865 libgpg-error
350432 ebtables
350387 libjpeg-turbo
348562 gmp-devel
345400 libldb
341782 libssh2
332381 libpwquality
324806 libpcap
321621 libjpeg-turbo-devel
320686 libcroco
315960 quota-nls
315474 stunnel
313775 ethtool
306231 libgnome-keyring
304544 dbus-libs
301237 dbus-glib
300168 gd-devel
298544 libdb-utils
287679 perl-podlators
287568 nspr
287413 device-mapper
285943 ustr
280064 samba-common-libs
267851 pth
266816 xinetd
261133 libmount
253045 libblkid
249996 gzip
245529 dhcp-common
244257 libedit
241481 python-pycurl
239967 xz-libs
236727 kmod
226686 apr
224892 libsemanage
223432 ncurses-base
220968 libkadm5
220369 libgcrypt-devel
220332 cronie
219830 bc
217762 libselinux
216267 libpng-devel
215376 less
215289 patch
212144 libgomp
210402 audit-libs
209610 cracklib
208315 expat
202888 tcp_wrappers
201066 acl
198751 apr-util
197501 pygpgme
194011 libselinux-devel
190112 pyliblzma
187944 nscd
185710 zlib
185196 newt
184322 gdbm
182385 c-ares
182056 nss-util
182002 expat-devel
181031 perl-Storable
179272 libgcc
178943 libtirpc
175770 libselinux-utils
174131 perl-PathTools
172722 attr
168793 xz-devel
166910 perl-Pod-Perldoc
166608 rpm-build-libs
165439 e2fsprogs-devel
165360 lzo
159524 pinentry
158781 perl-File-Temp
155391 libassuan
152213 libICE
151656 libsmbclient
149266 setuptool
149048 dhcp-libs
148801 rpm-python
148475 perl-Filter
145381 autogen-libopts
144436 cyrus-sasl
142521 libpipeline
139246 libnetfilter_conntrack
135536 zlib-devel
134846 perl-Getopt-Long
134602 tcp_wrappers-libs
126732 qrencode-libs
123974 ntpdate
123768 avahi-libs
119985 ed
118456 libsepol-devel
116916 newt-python
116599 libXpm
115772 telnet
115166 python-iniparse
114497 perl-Socket
113833 libmpc
111445 libcap
109118 sysvinit-tools
106263 libzip
105522 pkgconfig
102645 logrotate
102451 fontconfig-devel
99287 perl-Data-Dumper
98833 rpcbind
98691 ftp
98615 perl-threads
97210 perl-HTTP-Tiny
94069 perl-Time-HiRes
93578 traceroute
91768 kmod-libs
91472 libtdb
89505 tree
88516 popt
87102 libXext
85619 c-ares-devel
83791 bzip2
81546 libSM
80827 python
76962 which
76437 python-slip-dbus
73972 perl-threads-shared
73916 libzip-devel
73009 libss
72632 libwbclient
72291 python-decorator
70093 bzip2-libs
69704 libtalloc
68654 libXpm-devel
67994 perl-Scalar-List-Utils
67814 libtool-ltdl
67368 file
65593 json-c
63360 mailcap
63304 pyxattr
62288 libtevent
61552 lm_sensors-libs
61353 python-slip
60417 libcom_err
59999 perl-TermReadKey
59023 tmpwatch
58789 yum-metadata-parser
58567 perl-Git
56612 perl-Exporter
55529 libXau
53903 yum-plugin-fastestmirror
51847 libmnl
50510 libcap-ng
50067 perl-File-Path
50015 perl-Error
49749 libutempter
47926 time
47758 libffi
47123 libnfnetlink
44671 perl-Pod-Usage
44322 libestr
44062 perl-Time-Local
42730 hesiod
42138 keyutils-libs
39182 libaio
38815 fipscheck
37747 kpartx
37660 ntsysv
37056 libacl
36101 ncompress
36019 centos-release
32929 finger
31604 talk
29702 libgpg-error-devel
29186 keyutils-libs-devel
28276 perl-Carp
27736 gpm-libs
27642 perl-Thread-Queue
26452 talk-server
26364 perl-constant
26019 bind-license
25871 libverto-devel
24529 iptables-services
23064 pytalloc
23060 libverto
21091 perl-Pod-Escapes
20246 libuuid
20013 finger-server
19888 libattr
19449 hostname
17196 libcom_err-devel
16545 hardlink
16431 perl-Text-ParseWords
13970 nss-sysinit
11450 fipscheck-lib
8141 perl-parent
7990 libaio-devel
6519 libXau-devel
5134 perl-macros
3979 systemd-sysv
3700 crontabs
1089 vzdummy-systemd-el7
599 rootfiles
396 cronie-noanacron
0 vim-filesystem
0 mongodb-org
0 gpg-pubkey
0 gpg-pubkey
0 fontpackages-filesystem
0 filesystem
0 basesystem

评论

相关推荐

linux命令:rpm -qa --queryformat '%{INSTALLTIME} %{name}-%{version}-%{release}\n' | sort -k 1,1 -rn | nl | head -16 | awk '{printf("%3d %s %s\n", $1,strftime("%c",$2),$3)}' $1,strftime("%c",$2),$3)}' %s\n", %s '{printf("%3d awk | -16 head | nl | -rn 1,1 -k sort | %{name}-%{version}-%{release}\n' '%{INSTALLTIME} --queryformat -qa rpm rpm -qa --queryformat '%{INSTALLTIME} %{name}-%{version}-%{release}\n' | sort -k 1,1 -rn | nl | head -16 | awk '{printf("%3d %s %s\n", $1,strftime("%c",$2),$3)}'rootopen.com
linux命令:rpm -qa --queryformat '%{INSTALLTIME} %{name}-%{version}-%{release}\n' | sort -k 1,1 -rn | nl | head -16 | awk '{printf("%3d %s %s\n", $1,strftime("%c",$2),$3)}' $1,strftime("%c",$2),$3)}' %s\n", %s '{printf("%3d awk | -16 head | nl | -rn 1,1 -k sort | %{name}-%{version}-%{release}\n' '%{INSTALLTIME} --queryformat -qa rpm rpm -qa --queryformat '%{INSTALLTIME} %{name}-%{version}-%{release}\n' | sort -k 1,1 -rn | nl | head -16 | awk '{printf("%3d %s %s\n", $1,strftime("%c",$2),$3)}'rootopen.com
.

linux命令:rpm -qa --last | head -n 16 16 -n head | --last -qa rpm rpm -qa --last | head -n 16rootopen.com
linux命令:rpm -qa --last | head -n 16 16 -n head | --last -qa rpm rpm -qa --last | head -n 16rootopen.com
.

linux命令:rpm -qa --queryformat '%{INSTALLTIME} %{name}-%{version}-%{release}\n' | sort -k 1,1 -rn | nl | head -16 | awk '{printf("%3d %s %s\n", $1,strftime("%c",$2),$3)}' $1,strftime("%c",$2),$3)}' %s\n", %s '{printf("%3d awk | -16 head | nl | -rn 1,1 -k sort | %{name}-%{version}-%{release}\n' '%{INSTALLTIME} --queryformat -qa rpm rpm -qa --queryformat '%{INSTALLTIME} %{name}-%{version}-%{release}\n' | sort -k 1,1 -rn | nl | head -16 | awk '{printf("%3d %s %s\n", $1,strftime("%c",$2),$3)}'rootopen.com
linux命令:rpm -qa --queryformat '%{INSTALLTIME} %{name}-%{version}-%{release}\n' | sort -k 1,1 -rn | nl | head -16 | awk '{printf("%3d %s %s\n", $1,strftime("%c",$2),$3)}' $1,strftime("%c",$2),$3)}' %s\n", %s '{printf("%3d awk | -16 head | nl | -rn 1,1 -k sort | %{name}-%{version}-%{release}\n' '%{INSTALLTIME} --queryformat -qa rpm rpm -qa --queryformat '%{INSTALLTIME} %{name}-%{version}-%{release}\n' | sort -k 1,1 -rn | nl | head -16 | awk '{printf("%3d %s %s\n", $1,strftime("%c",$2),$3)}'rootopen.com
.

linux命令:rpm -qa --last | head -n 16 16 -n head | --last -qa rpm rpm -qa --last | head -n 16rootopen.com
linux命令:rpm -qa --last | head -n 16 16 -n head | --last -qa rpm rpm -qa --last | head -n 16rootopen.com
.

最新的rpms位居前列;个别软件包也可以这样查询:rpm --last -q软件包

linux命令:rpm -qa --last --last -qa rpm rpm -qa --lastrootopen.com
linux命令:rpm -qa --last --last -qa rpm rpm -qa --lastrootopen.com
.

linux命令:rpm --query --filesbypackage [packagename] [packagename] --filesbypackage --query rpm rpm --query --filesbypackage [packagename]rootopen.com
linux命令:rpm --query --filesbypackage [packagename] [packagename] --filesbypackage --query rpm rpm --query --filesbypackage [packagename]rootopen.com
.

linux命令:rpm -qa --last --last -qa rpm rpm -qa --lastrootopen.com
linux命令:rpm -qa --last --last -qa rpm rpm -qa --lastrootopen.com
.

linux命令:rpm -qa --qf '%{name}' '%{name}' --qf -qa rpm rpm -qa --qf '%{name}'rootopen.com
linux命令:rpm -qa --qf '%{name}' '%{name}' --qf -qa rpm rpm -qa --qf '%{name}'rootopen.com
.

允许检查里面的rpm文件,没有安装它

linux命令:rpm -qlp <package.rpm> <package.rpm> -qlp rpm rpm -qlp <package.rpm>rootopen.com
linux命令:rpm -qlp <package.rpm> <package.rpm> -qlp rpm rpm -qlp <package.rpm>rootopen.com
.

如果以某种方式,如果你得到多个同名的rpm包安装,那么它不能通过使用简单的rpm -e来删除,因为它会给你多个rpm匹配错误。 - 匹配将有助于删除所有相同名称的rpm包。

linux命令:rpm -e --allmatches filename.rpm filename.rpm --allmatches -e rpm rpm -e --allmatches filename.rpmrootopen.com
linux命令:rpm -e --allmatches filename.rpm filename.rpm --allmatches -e rpm rpm -e --allmatches filename.rpmrootopen.com
.

linux命令:rpm -qa --queryformat 'Installed on %{INSTALLTIME:date}\t%{NAME}-%{VERSION}-%{RELEASE}: %{SUMMARY}\n' %{SUMMARY}\n' %{INSTALLTIME:date}\t%{NAME}-%{VERSION}-%{RELEASE}: on 'Installed --queryformat -qa rpm rpm -qa --queryformat 'Installed on %{INSTALLTIME:date}\t%{NAME}-%{VERSION}-%{RELEASE}: %{SUMMARY}\n'rootopen.com
linux命令:rpm -qa --queryformat 'Installed on %{INSTALLTIME:date}\t%{NAME}-%{VERSION}-%{RELEASE}: %{SUMMARY}\n' %{SUMMARY}\n' %{INSTALLTIME:date}\t%{NAME}-%{VERSION}-%{RELEASE}: on 'Installed --queryformat -qa rpm rpm -qa --queryformat 'Installed on %{INSTALLTIME:date}\t%{NAME}-%{VERSION}-%{RELEASE}: %{SUMMARY}\n'rootopen.com
.

当我们需要复制一个测试场景时,这个命令非常有用,首先我们要找出已安装的库以及版本和版本号以及体系结构。 (查看示例)可以通过选择我们感兴趣的库的名称来调整命令,例如glibc和gcc。

linux命令:rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}\n'|egrep 'compat|glibc|gcc|libst|binu'|sort 'compat|glibc|gcc|libst|binu'|sort '%{name}-%{version}-%{release}.%{arch}\n'|egrep --qf -qa rpm rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}\n'|egrep 'compat|glibc|gcc|libst|binu'|sortrootopen.com
linux命令:rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}\n'|egrep 'compat|glibc|gcc|libst|binu'|sort 'compat|glibc|gcc|libst|binu'|sort '%{name}-%{version}-%{release}.%{arch}\n'|egrep --qf -qa rpm rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}\n'|egrep 'compat|glibc|gcc|libst|binu'|sortrootopen.com
.

有时,rpm不是通配符友好的。要搜索从软件包安装的文件,这可能会很有用。将PACKAGENAME更改为您要搜索的任何软件包

linux命令:rpm -qa | grep PACKAGENAME | xargs rpm -q --filesbypkg --filesbypkg -q rpm xargs | PACKAGENAME grep | -qa rpm rpm -qa | grep PACKAGENAME | xargs rpm -q --filesbypkgrootopen.com
linux命令:rpm -qa | grep PACKAGENAME | xargs rpm -q --filesbypkg --filesbypkg -q rpm xargs | PACKAGENAME grep | -qa rpm rpm -qa | grep PACKAGENAME | xargs rpm -q --filesbypkgrootopen.com
.

用'PATH'中的任何命令替换'more'命令。

linux命令:rpm -qif `which more` more` `which -qif rpm rpm -qif `which more`rootopen.com
linux命令:rpm -qif `which more` more` `which -qif rpm rpm -qif `which more`rootopen.com
.

这假定你已经安装了'rpm','rpm2cpio'和'cpio'软件包。这会将RPM包的内容解压到当前目录。这对于使用软件包提供的文件而不用在系统上安装软件包很有用。在运行提取之前创建一个临时目录来容纳这些包可能很有用:mkdir / tmp / new-package /; cd / tmp / new-package

linux命令:rpm2cpio /path/to/file.rpm | cpio -i -d -d -i cpio | /path/to/file.rpm rpm2cpio rpm2cpio /path/to/file.rpm | cpio -i -drootopen.com
linux命令:rpm2cpio /path/to/file.rpm | cpio -i -d -d -i cpio | /path/to/file.rpm rpm2cpio rpm2cpio /path/to/file.rpm | cpio -i -drootopen.com
.

你可以在rpm搜索中使用通配符,但你必须做两件事:1。使用带查询(“-q”)的“-a”开关(表示“all”)switch - 参数是搜索所有已安装包的软件包名称时使用的模式2。保护通配符,以便shell不会吃掉它们 - 用反斜杠(“\”)将其转义或将所有模式包含在撇号之间(“'”):rpm -qa'co * de'如上所示,可以插入如果需要,可以添加“-i”或另一个rpm查询选项,“-i”将打印所有已安装的匹配模式包的包信息。

linux命令:rpm -qa \*code\* \*code\* -qa rpm rpm -qa \*code\*rootopen.com
linux命令:rpm -qa \*code\* \*code\* -qa rpm rpm -qa \*code\*rootopen.com
.

磁盘空间不足?检查删除候选人的最大安装RPM。

linux命令:rpm -qa --qf '%{SIZE} %{NAME}\n' | sort -nr | nl | head -6 # six largest RPMs RPMs largest six # -6 head | nl | -nr sort | %{NAME}\n' '%{SIZE} --qf -qa rpm rpm -qa --qf '%{SIZE} %{NAME}\n' | sort -nr | nl | head -6 # six largest RPMsrootopen.com
linux命令:rpm -qa --qf '%{SIZE} %{NAME}\n' | sort -nr | nl | head -6 # six largest RPMs RPMs largest six # -6 head | nl | -nr sort | %{NAME}\n' '%{SIZE} --qf -qa rpm rpm -qa --qf '%{SIZE} %{NAME}\n' | sort -nr | nl | head -6 # six largest RPMsrootopen.com
.

找出在特定日期安装了哪些RPM。这些(自然)会包括更新RPM。此示例显示搜索“Thu 05 Mar”(使用grep)。或者,将其管理得更少,以便您可以更少地搜索(使用更少的搜索字词整齐的文本突出显示):rpm -qa --queryformat'%{installtime} \“%{vendor} \”%{name} - %{version} - %{release}%{installtime:date} \ n '|更少#(这个例子)搜索条件:星期四05五月

linux命令:rpm -qa --queryformat '%{installtime} \"%{vendor}\" %{name}-%{version}-%{release} %{installtime:date}\n' | grep "Thu 05 Mar" Mar" 05 "Thu grep | %{installtime:date}\n' %{name}-%{version}-%{release} \"%{vendor}\" '%{installtime} --queryformat -qa rpm rpm -qa --queryformat '%{installtime} \"%{vendor}\" %{name}-%{version}-%{release} %{installtime:date}\n' | grep "Thu 05 Mar"rootopen.com
linux命令:rpm -qa --queryformat '%{installtime} \"%{vendor}\" %{name}-%{version}-%{release} %{installtime:date}\n' | grep "Thu 05 Mar" Mar" 05 "Thu grep | %{installtime:date}\n' %{name}-%{version}-%{release} \"%{vendor}\" '%{installtime} --queryformat -qa rpm rpm -qa --queryformat '%{installtime} \"%{vendor}\" %{name}-%{version}-%{release} %{installtime:date}\n' | grep "Thu 05 Mar"rootopen.com
.

列出所有已安装的具有名称和体系结构的RPM软件包,这对于在64位系统上检查compability软件包(+所需的i386软件包)很有用。

linux命令:rpm -qa --queryformat "%{NAME} %{ARCH}\n" %{ARCH}\n" "%{NAME} --queryformat -qa rpm rpm -qa --queryformat "%{NAME} %{ARCH}\n"rootopen.com
linux命令:rpm -qa --queryformat "%{NAME} %{ARCH}\n" %{ARCH}\n" "%{NAME} --queryformat -qa rpm rpm -qa --queryformat "%{NAME} %{ARCH}\n"rootopen.com
.

linux命令:rpm -Va | grep -v "\.\.\.\.\.\.\.T" "\.\.\.\.\.\.\.T" -v grep | -Va rpm rpm -Va | grep -v "\.\.\.\.\.\.\.T"rootopen.com
linux命令:rpm -Va | grep -v "\.\.\.\.\.\.\.T" "\.\.\.\.\.\.\.T" -v grep | -Va rpm rpm -Va | grep -v "\.\.\.\.\.\.\.T"rootopen.com
.
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令