02 June 2010

Advanced Package Tool (apt) basics

For this tutorial, we are again using our go-to favorite: Frozen Bubble. However, it should be noted that these instructions apply to virtually every application or package that you wish to install. This is intended only to be a basic introduction to the most used functions or methods of apt.
  • Reload the package information so that apt becomes aware of any new, removed or updated software that may be available for your system. sudo apt-get update
  • Search for and display a list of packages from the cache that include the term frozen bubble in either the name or description of the package. Note: Spaces are allowed when using apt-get search. apt-cache search frozen bubble
  • Once the name of a particular package is identified (using apt-cache search from above), obtain detailed information about said package. Note: Package names normally use hyphens in place of spaces. apt-cache show frozen-bubble
  • Install the chosen package and all necessary supporting files (dependencies). Note: This automatically resolves dependencies. If one package or ten packages are needed to install your chosen application, they are installed automatically, thus saving you (fingers crossed) from dependency hell.sudo apt-get install frozen-bubble
  • Remove a particular package and any accompanying dependencies no longer needed by other packages. sudo apt-get autoremove frozen-bubble

No comments: