Update all ant packages installed in gentoo

emerge -q1 $(eix -C dev-java -I --upgrade+ --only-names ant)
Update all "ant" packages installed on Gentoo
Sample Output
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] dev-java/ant-core-1.8.1 [1.7.1-r4] USE="doc -source" 5,740 kB
[ebuild     U ] dev-java/ant-nodeps-1.8.1 [1.7.1] 0 kB                       
[ebuild     U ] dev-java/ant-antlr-1.8.1 [1.7.1-r1] 0 kB                     
[ebuild     U ] dev-java/ant-apache-log4j-1.8.1 [1.7.1] 0 kB                 
[ebuild     U ] dev-java/ant-apache-oro-1.8.1 [1.7.1] 0 kB                   
[ebuild     U ] dev-java/ant-apache-regexp-1.8.1 [1.7.1] 0 kB                
[ebuild     U ] dev-java/ant-apache-resolver-1.8.1 [1.7.1] 0 kB              
[ebuild     U ] dev-java/ant-commons-logging-1.8.1 [1.7.1] 0 kB
[ebuild     U ] dev-java/ant-commons-net-1.8.1 [1.7.1] 0 kB
[ebuild     U ] dev-java/ant-javamail-1.8.1 [1.7.1] 0 kB
[ebuild     U ] dev-java/ant-jdepend-1.8.1 [1.7.1] 0 kB
[ebuild     U ] dev-java/ant-jsch-1.8.1 [1.7.1] 0 kB
[ebuild     U ] dev-java/ant-junit-1.8.1 [1.7.1] 0 kB
[ebuild     U ] dev-java/ant-swing-1.8.1 [1.7.1] 0 kB
[ebuild     U ] dev-java/ant-jmf-1.8.1 [1.7.1] 0 kB
[ebuild     U ] dev-java/ant-apache-bcel-1.8.1 [1.7.1] 0 kB
[ebuild     U ] dev-java/ant-apache-bsf-1.8.1 [1.7.1-r1] USE="javascript python tcl" 0 kB
[ebuild     U ] dev-java/ant-trax-1.8.1 [1.7.1] 0 kB
[ebuild  N    ] dev-java/ant-apache-xalan2-1.8.1  0 kB
[ebuild     U ] dev-java/ant-1.8.1 [1.7.1] USE="X antlr bcel bsf commonslogging commonsnet javamail jdepend jsch log4j oro regexp resolver -jai -jmf -testutil%" 0 kB

Total: 20 packages (19 upgrades, 1 new), Size of downloads: 5,740 kB

By: neoriddle
2010-07-07 22:22:02

These Might Interest You

  • I sometimes want to know what packages are installed on my Ubuntu system. I still haven't figured out how to use aptitude effectively, so this is the next best thing. This allows finding by name. The grep '^ii' limits the display to only installed packages. If this is not specified, then it includes listing of non-installed packages as well. Show Sample Output

    dpkg --list '*linux*' | grep '^ii'
    piyo · 2009-02-13 17:05:37 1
  • As of March 7, 2012: brew update - downloads upgraded formulas brew upgrade [FORMULA...] - upgrades the specified formulas brew outdated - lists outdated installations Note updating all packages may take an excruciatingly long time. You might consider a discriminating approach: run `brew outdated` and select specific packages needing an upgrade. For more information see homebrew's git repository: https://github.com/mxcl/homebrew Show Sample Output

    brew update && brew upgrade `brew outdated`
    farazyashar · 2012-03-07 14:26:41 1
  • Shows the packages installed on your system that are recomemnded by other packages. You should remove these packages. Show Sample Output

    aptitude search '?and( ?automatic(?reverse-recommends(?installed)), ?not(?automatic(?reverse-depends(?installed))) )'
    wei2912 · 2012-07-28 05:45:21 0
  • The other commands were good, but they included packages that were installed and then removed. This command only shows packages that are currently installed, sorts smallest to largest, and formats the sizes to be human readable. Show Sample Output

    dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' `aptitude --display-format '%p' search '?installed!?automatic'` | sort -k 2 -n | grep -v deinstall | awk '{printf "%.3f MB \t %s\n", $2/(1024), $1}'
    EvilDennisR · 2013-07-26 23:18:20 0

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: