Compdigitec Labs

« | Home | »

Using apt-get in Ubuntu Linux

By admin | September 21, 2008

If you ever need to install packages (built-in), but cannot use Synaptic, then here are some useful tips on using apt-get in Ubuntu:

  1. sudo apt-get install package – Installs package and it’s dependencies
  2. sudo apt-get remove package – Removes package, but you need to use #4 to remove unused dependencies
  3. sudo apt-get update – Updates the package list (checks for updates)
  4. sudo apt-get autoremove – See #2, removes leftover dependencies
  5. sudo apt-get clean – Removes leftover cached packages. Use this to free up space on your root partition
  6. sudo apt-get -s ACTION – Performs a simulation run of ACTION. Does not actually do anything.
  7. sudo apt-get -d ACTION – Downloads the package only. Does not actually install it. Use ACTION with install.
  8. sudo apt-get -f install – Fixes broken dependencies.
  9. sudo apt-get autoclean – See #5 above.
  10. sudo apt-get purge – Remove and purge packages.
  11. sudo apt-get moo – Self-explaining. (Will format your hard disk and render it unusable.)

If you found this list useful or helpful, please help Compdigitec by spreading the word. Don’t forget to subscribe to Compdigitec Labs!

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: Linux | 6 Comments »

6 Responses to “Using apt-get in Ubuntu Linux”

  1. ลดผมร่วง Says:
    November 4th, 2026 at 22:04

    … [Trackback]

    […] Here you can find 31721 additional Information to that Topic: compdigitec.com/labs/2008/09/21/using-apt-get-in-ubuntu-linux/ […]

  2. ไดอะแฟรม Says:
    November 14th, 2026 at 23:12

    … [Trackback]

    […] Read More Info here to that Topic: compdigitec.com/labs/2008/09/21/using-apt-get-in-ubuntu-linux/ […]

  3. ซื้อchatgpt ในนามบริษัท Says:
    November 16th, 2026 at 04:12

    … [Trackback]

    […] Read More here on that Topic: compdigitec.com/labs/2008/09/21/using-apt-get-in-ubuntu-linux/ […]

  4. ลวดสลิง Says:
    November 19th, 2026 at 23:15

    … [Trackback]

    […] Read More to that Topic: compdigitec.com/labs/2008/09/21/using-apt-get-in-ubuntu-linux/ […]

  5. UFAMOBILE ทางเลือกแฟนบอล Says:
    November 24th, 2026 at 19:54

    … [Trackback]

    […] Read More Information here on that Topic: compdigitec.com/labs/2008/09/21/using-apt-get-in-ubuntu-linux/ […]

  6. แว่น rayban Says:
    November 25th, 2026 at 01:58

    … [Trackback]

    […] Find More to that Topic: compdigitec.com/labs/2008/09/21/using-apt-get-in-ubuntu-linux/ […]

Comments