トップページ | 過去記事(月別カテゴリー別) | 掲示板 | 野良DEB,RPM | 更新チェック | Twitter
<<  2012.7  >>
SMTWTFS
1234567
891011121314
15161718192021
22232425262728
293031    
 
リンク
その他
  • RSS2.0
  • Credit

  • SEO
    loading

    プライバシーポリシー
    Google

カテゴリー » Linux » Fedora July 14, 2012

yum-plugin-remove-with-leaves - 依存関係を考慮して削除 Fedora

最近のFedoraやCentOSには「yum-plugin-remove-with-leaves」というYumプラグインがあるのですね。
yum-plugin-remove-with-leaves

This extension removes unused dependencies which have been incorporated by an installation package that would otherwise not be removed. Helps maintain a system clean of libraries and unused packages.

This extension adds the following options to the remove command:

--leaves-exclude-bin
Do not remove leaf packages containing executable binaries.

--remove-leaves
Removes unneeded dependencies for other packages.

Fedora 14 Software Management Guide
普通に yum remove しても本体しか消してくれませんが、
$ sudo yum remove smplayer
削除中:
 smplayer        x86_64        0.8.0-2.fc17        @rpmfusion-free        8.8 M
トランザクションの要約
================================================================================
削除  1 パッケージ
yum-plugin-remove-with-leavesを使うと、Debian(Ubuntu)のapt-get autoremoveのように
$ sudo yum install yum-plugin-remove-with-leaves $ sudo yum remove --remove-leaves smplayer 依存性を解決しました ================================================================================ Package アーキテクチャ バージョン リポジトリー 容量 ================================================================================ 削除中: SDL x86_64 1.2.14-16.fc17 @fedora 465 k a52dec x86_64 0.7.4-16.fc17 @rpmfusion-free 122 k aalib-libs x86_64 1.4.0-0.20.rc5.fc17 @fedora 154 k faad2-libs x86_64 1:2.7-2.fc17 @rpmfusion-free 267 k ffmpeg-libs x86_64 0.10.4-1.fc17 @rpmfusion-free-updates 9.8 M freeglut x86_64 2.8.0-3.fc17 @fedora 628 k fribidi x86_64 0.19.2-4.fc17 @koji-override-0/$releasever 175 k gpm-libs x86_64 1.20.6-22.fc17 @fedora 27 k kde-filesystem x86_64 4-39.fc17 @fedora 3.7 k lame-libs x86_64 3.99.5-1.fc17 @rpmfusion-free 1.2 M libass x86_64 0.10.0-2.fc17 @koji-override-0/$releasever 112 k libbs2b x86_64 3.1.0-4.fc17 @fedora 52 k libcaca x86_64 0.99-0.14.beta17.fc17 @fedora 846 k libdc1394 x86_64 2.1.4-2.fc17 @koji-override-0/$releasever 329 k libdca x86_64 0.0.5-6.fc17 @rpmfusion-free 201 k libmng x86_64 1.0.10-6.fc17 @fedora 530 k libmpeg2 x86_64 0.5.1-9.fc17 @rpmfusion-free 179 k libmpg123 x86_64 1.13.7-1.fc17 @rpmfusion-free 417 k librtmp x86_64 2.4-0.2.20110811gitc58cfb3e.fc17 @rpmfusion-free 132 k libva x86_64 1.0.15-2.fc17 @fedora 151 k lirc-libs x86_64 0.9.0-8.fc17 @fedora 44 k mplayer x86_64 1.0-0.140.20120205svn.fc17 @rpmfusion-free-updates 3.2 M mplayer-common x86_64 1.0-0.140.20120205svn.fc17 @rpmfusion-free-updates 1.3 M openal-soft x86_64 1.14-2.fc17 @updates 402 k qt x86_64 1:4.8.2-2.fc17 @updates 16 M qt-settings noarch 4.8-16.fc17 @updates 1.8 k qt-x11 x86_64 1:4.8.2-2.fc17 @updates 33 M qtlockedfile x86_64 2.4-4.fc17 @fedora 73 k qtsingleapplication x86_64 2.6.1-6.fc17 @fedora 98 k quazip x86_64 0.4.4-1.fc17 @fedora 122 k schroedinger x86_64 1.0.11-1.fc17 @koji-override-0/$releasever 902 k smplayer x86_64 0.8.0-2.fc17 @rpmfusion-free 8.8 M x264-libs x86_64 0.120-5.20120303.fc17 @rpmfusion-free 836 k xvidcore x86_64 1.3.2-3.fc17 @rpmfusion-free 922 k トランザクションの要約 ================================================================================ 削除 34 パッケージ
不要になると思われるパッケージも一緒に削除してくれます。

あまり神経質になるのもどうかと思いますけど、孤立パッケージを表示するコマンド「package-cleanup --leaves」や「rpmorphan」と組み合わせて使うと効果的ですね。
12:37 am | コメントする |

上の記事に対するコメント

1. こで@なごみ大明神 (Website)  2012/07/15 12:47
おぉ、これはいいですね!
なるほど便利だ入れておこう。

2. Owner CommentSawa  2012/07/16 23:34
知らない間にyumのプラグインが増えていて驚きました。
yumって、aptと比べてあまり良い印象がなかったのですが、見方が変わった今日この頃です。

3. けんけん (Website)  2012/07/27 08:08
それでも、削除は怖いチキンですw


累計:19757、今日:1149、昨日:834
Created in 0.011 sec.