感谢继争的提示!
man rpm 在删除的指令参数中有这么几项:
rpm {-e|--erase} [--allmatches] [--nodeps] [--noscripts]
[--notriggers] [--repackage] [--test] PACKAGE_NAME ...
对于--allmatches是这么解释的: Remove all versions of the package which match PACKAGE_NAME. Normally an error is issued if PACKAGE_NAME matches multiple pack-ages.
下面是我的一次经历,yum update fc8中。
[root@lee cron.daily]# rpm -qa |grep libgpod
libgpod-0.5.2-2.fc8
libgpod-0.5.2-2.fc8
[root@lee cron.daily]# rpm -ql libgpod-0.5.2-2.fc8
/usr/lib64/libgpod.so.2
/usr/lib64/libgpod.so.2.0.0
/usr/share/doc/libgpod-0.5.2
/usr/share/doc/libgpod-0.5.2/AUTHORS
/usr/share/doc/libgpod-0.5.2/COPYING
/usr/share/doc/libgpod-0.5.2/ChangeLog
/usr/share/doc/libgpod-0.5.2/README
/usr/share/locale/de/LC_MESSAGES/libgpod.mo
/usr/share/locale/es/LC_MESSAGES/libgpod.mo
/usr/share/locale/fr/LC_MESSAGES/libgpod.mo
/usr/share/locale/he/LC_MESSAGES/libgpod.mo
/usr/share/locale/it/LC_MESSAGES/libgpod.mo
/usr/share/locale/ja/LC_MESSAGES/libgpod.mo
/usr/share/locale/sv/LC_MESSAGES/libgpod.mo
/usr/lib/libgpod.so.2
/usr/lib/libgpod.so.2.0.0
/usr/share/doc/libgpod-0.5.2
/usr/share/doc/libgpod-0.5.2/AUTHORS
/usr/share/doc/libgpod-0.5.2/COPYING
/usr/share/doc/libgpod-0.5.2/ChangeLog
/usr/share/doc/libgpod-0.5.2/README
/usr/share/locale/de/LC_MESSAGES/libgpod.mo
/usr/share/locale/es/LC_MESSAGES/libgpod.mo
/usr/share/locale/fr/LC_MESSAGES/libgpod.mo
/usr/share/locale/he/LC_MESSAGES/libgpod.mo
/usr/share/locale/it/LC_MESSAGES/libgpod.mo
/usr/share/locale/ja/LC_MESSAGES/libgpod.mo
/usr/share/locale/sv/LC_MESSAGES/libgpod.mo
[root@lee cron.daily]# rm -rf /usr/lib64/libgpod.so.
Display all 306 possibilities? (y or n)
[root@lee cron.daily]# rm -rf /usr/lib64/libgpod.so.2
libgpod.so.2 libgpod.so.2.0.0
[root@lee cron.daily]# rm -rf /usr/lib64/libgpod.so.2*
[root@lee cron.daily]# rm -rf /usr/share/doc/libgpod-0.5.2/
[root@lee cron.daily]# rm -rf /usr/share/locale/de/LC_MESSAGES/libgpod.mo
[root@lee cron.daily]# rm -rf /usr/share/locale/es/LC_MESSAGES/libgpod.mo
[root@lee cron.daily]# rm -rf /usr/share/locale/fr/LC_MESSAGES/libgpod.mo
[root@lee cron.daily]# rm -rf /usr/share/locale/he/LC_MESSAGES/libgpod.mo
[root@lee cron.daily]# rm -rf /usr/share/locale/it/LC_MESSAGES/libgpod.mo
[root@lee cron.daily]# rm -rf /usr/share/locale/ja/LC_MESSAGES/libgpod.mo
[root@lee cron.daily]# rm -rf /usr/share/locale/sv/LC_MESSAGES/libgpod.mo
[root@lee cron.daily]# rm -rf /usr/lib/libgpod.so.2
libgpod.so.2 libgpod.so.2.0.0
[root@lee cron.daily]# rm -rf /usr/lib/libgpod.so.2*
[root@lee cron.daily]# rpm -ql libgpod-0.5.2-2.fc8
/usr/lib64/libgpod.so.2
/usr/lib64/libgpod.so.2.0.0
/usr/share/doc/libgpod-0.5.2
/usr/share/doc/libgpod-0.5.2/AUTHORS
/usr/share/doc/libgpod-0.5.2/COPYING
/usr/share/doc/libgpod-0.5.2/ChangeLog
/usr/share/doc/libgpod-0.5.2/README
/usr/share/locale/de/LC_MESSAGES/libgpod.mo
/usr/share/locale/es/LC_MESSAGES/libgpod.mo
/usr/share/locale/fr/LC_MESSAGES/libgpod.mo
/usr/share/locale/he/LC_MESSAGES/libgpod.mo
/usr/share/locale/it/LC_MESSAGES/libgpod.mo
/usr/share/locale/ja/LC_MESSAGES/libgpod.mo
/usr/share/locale/sv/LC_MESSAGES/libgpod.mo
/usr/lib/libgpod.so.2
/usr/lib/libgpod.so.2.0.0
/usr/share/doc/libgpod-0.5.2
/usr/share/doc/libgpod-0.5.2/AUTHORS
/usr/share/doc/libgpod-0.5.2/COPYING
/usr/share/doc/libgpod-0.5.2/ChangeLog
/usr/share/doc/libgpod-0.5.2/README
/usr/share/locale/de/LC_MESSAGES/libgpod.mo
/usr/share/locale/es/LC_MESSAGES/libgpod.mo
/usr/share/locale/fr/LC_MESSAGES/libgpod.mo
/usr/share/locale/he/LC_MESSAGES/libgpod.mo
/usr/share/locale/it/LC_MESSAGES/libgpod.mo
/usr/share/locale/ja/LC_MESSAGES/libgpod.mo
/usr/share/locale/sv/LC_MESSAGES/libgpod.mo
[root@lee cron.daily]# rpm -qa|grep libgpod
libgpod-0.5.2-2.fc8
libgpod-0.5.2-2.fc8
[root@lee cron.daily]# rpm -e libgpod-0.5.2-2.fc8 libgpd-0.5.2-2.fc8 --nodeps
error: "libgpod-0.5.2-2.fc8" specifies multiple packages
error: package libgpd-0.5.2-2.fc8 is not installed
[root@lee cron.daily]# rpm -e libgpod-0.5.2-2.fc8
error: "libgpod-0.5.2-2.fc8" specifies multiple packages
[root@lee cron.daily]# rpm -e libgpod-0.5.2-2.fc8 -allmatches
-allmatches: 未知的选项
[root@lee cron.daily]# rpm -e libgpod-0.5.2-2.fc8 -all-matches
-all-matches: 未知的选项
[root@lee cron.daily]# rpm -e libgpod-0.5.2-2.fc8 -all-match
-all-match: 未知的选项
[root@lee cron.daily]# rpm -e libgpod-0.5.2-2.fc8 -allmatch
-allmatch: 未知的选项
[root@lee cron.daily]# man rpm
[root@lee cron.daily]# rpm -e libgpod-0.5.2-2.fc8 --allmatches
error: Failed dependencies:
libgpod.so.2()(64bit) is needed by (installed) rhythmbox-0.11.3-5.fc8.x86_64
libgpod.so.2 is needed by (installed) rhythmbox-0.11.3-5.fc8.i386
[root@lee cron.daily]# rpm -e libgpod-0.5.2-2.fc8 --allmatches --nodeps
阅读(1968) | 评论(0) | 转发(0) |