Commands tagged packaging (6)

  • 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


    11
    brew update && brew upgrade `brew outdated`
    farazyashar · 2012-03-07 14:26:41 1

  • 5
    brew update && brew upgrade
    lime · 2014-05-04 08:47:15 0
  • Sometimes, simpler is better.


    3
    sudo dpkg-reconfigure -a
    vxbinaca · 2010-07-24 19:10:13 1
  • extracts the debian-package $debfile to $extractdir, including all packaging-information. to repack the package, just type: dpkg-deb -b $extractdir


    1
    dpkg-deb -x $debfile $extractdir; dpkg-deb -e $debfile $extractdir/DEBIAN;
    flokra · 2009-08-07 20:33:43 1
  • A replacement for 'apt-cache' that uses a Xapian to produce ranked results. Available in 'apt-xapian-index' 0.27 and higher. Show Sample Output


    0
    axi-cache search <searchterm>
    tarkasteve · 2010-07-05 00:16:03 0
  • More information about what homebrew is all about: http://github.com/mxcl/homebrew


    -6
    brew update && brew install `brew outdated`
    zeroathome · 2010-02-11 12:17:24 4

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


Check These Out

Recursively grep for string and format output for vi(m)
This is a big time saver for me. I often grep source code and need to edit the findings. A single highlight of the mouse and middle mouse click (in gnome terminal) and I'm editing the exact line I just found. The color highlighting helps interpret the data.

Empty a file
For when you want to flush all content from a file without removing it (hat-tip to Marc Kilgus).

Remove all mail in Postfix mail queue.

Create a new file

Show max lengths of all fields in a pipe delimited file with header row

Show a Package Version on Debian based distribution
if you don't want to show string "version?, then use awk or cut filter it: apt-cache show pkgname | grep -i "version:" | awk '{ print $2 }' we can also use regex to search many packages and show their versions: apt-cache search pkgregex | grep -i "version:"

Upgrade all expired homebrew packages
You probably want to run `brew update` before you run this command

list block devices
Shows all block devices in a tree with descruptions of what they are.

Ping a URL sending output to file and STDOUT
The tee (as in "T" junction) command is very useful for redirecting output to two places.

open path with your default GNOME program
Another step to bring cli and gui closer together: gnome-open It opens a path with the default (gui) application for its mime type. I would recommend a shorter alias like alias o=gnome-open More examples: $ gnome-open . [opens the current folder in nautilus / your default file browser] $ gnome-open some.pdf [opens some.pdf in evince / your default pdf viewer] $ gnome-open trash:// [opens the trash with nautilus] $ gnome-open http://www.commandlinefu.com [opens commandlinefu in your default webbrowser]


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: