MacPortsをクリーニング

MacPortsで入れているソフトウェアをアップグレードしていくと、その残骸であるテンポラリファイルや古いバージョンで塵が積もるようにディスクスペースを圧迫してきます。たまにクリーニングしてあげることですっきりさせてあげましょう。

まずはディスクスペースをどれくらい使っているかの確認

du -sh /opt

次にテンポラリファイルの整理

sudo port clean --all installed

そして古いバージョンの整理

sudo port -f uninstall inactive

あまりソフトウェアを入れていない私の環境でも591M => 347Mに節約できることが出来ました。アップグレードの度にクリーニングを行っているのでこれくらいで収まっていると思います。

This entry was posted in UNIX/Linux and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">