This comprehensive beginner’s guide covers installing software on Ubuntu using six different methods, from user-friendly graphical interfaces to advanced command-line and source compilation techniques. Whether you prefer clicking through apps like on your phone or typing precise commands, these steps will get any program running on your Ubuntu system.

Six methods for installing software on Ubuntu

Follow the method that matches your comfort level, starting with graphical options for beginners or command-line for efficiency.

Method 1: Ubuntu Software

  • OpenUbuntu Software by clicking the orange suitcase icon with an “A” or searching for “software” in Activities.
  • Search or browse for an application using categories or the search bar.
  • Click an application to view its description, ratings, size, screenshots, and details.
  • Click Install and enter your password when prompted; the software will download and install automatically.
  • To uninstall, open Ubuntu Software, click Installed, find the app, and click Remove.

Method 2: Advanced Package Tool (APT)

  • Open a terminal with Ctrl + Alt + T.
  • Runsudo apt-get update to refresh the package index.
  • Search for a package using apt-cache search <package name>.
  • View detailed info with apt-cache showpkg <packagename>.
  • Install a package by running sudo apt-get install <packagename>.
  • To upgrade, first run sudo apt-get update, then sudo apt-get upgrade.
  • Remove a package with sudo apt-get remove <packagename> (add –purge to delete configuration files).

Method 3: Synaptic

  • Install Synaptic if needed: sudo apt-get install synaptic.
  • Open Synaptic from System → Administration → Synaptic Package Manager.
  • Browse or search for packages in the left panel or search box.
  • View details by clicking Properties.
  • Mark a package for installation with Mark for Installation; right-click for more options.
  • Click Apply twice to confirm and install marked packages.
  • To update software, click Reload, mark for Upgrade, then Apply twice.
  • Uninstall by marking for removal and applying changes.

Method 4: Snap Store

  • If not installed, runsudo snap install snap-store.
  • Launch it via snap-store in the terminal or from the application menu.
  • Search or browse categories like Games or Productivity.
  • Click Install; the app downloads and updates automatically, including all dependencies.
  • To remove, runsnap remove <packagename> in the terminal.

Method 5: Installing RPMs with Alien

  • Add the Universe repository: sudo add-apt-repository universe.
  • Update package lists: sudo apt update.
  • Install Alien: sudo apt install alien.
  • Convert an RPM to DEB: sudo alien <package_name.rpm>.
  • Install the resulting DEB file: sudo dpkg -i <package_name.deb>.

Method 6: Compiling from source code

  • Install build essentials: sudo apt-get install build-essential.
  • Decompress the source archive:
    • For .tar.gz or .tgz: tar -xvf <file.tar.gz>
    • For .tar.bz2: tar -xjvf <file.tar.bz2>
  • Read the README or INSTALL file: cat README or more INSTALL.
  • Prepare for compilation: ./configure or chmod u+x install.sh then ./install.sh.
  • Compile the code: make.
  • Install: sudo make install (omit sudo for user-only install).
Pro tip: Beginners should stick to Ubuntu Software or Snap Store for their app-store-like simplicity, while APT offers the most control for power users—always run sudo apt-get update before installing to ensure you get the latest versions.

Mastering these methods gives you flexibility on Ubuntu, letting you choose graphical ease or precise control based on the software. Graphical tools like Ubuntu Software and Snap Store bundle dependencies automatically, reducing errors for new users. Command-line options like APT and Synaptic access vast repositories efficiently.

Knowing how to compile from source or convert RPMs ensures you can install any program, even niche ones not in standard repos. This versatility keeps your system optimized and up-to-date without relying on a single method.