“How do I install an application in Ubuntu?” is one of the most common questions from people who are new to Linux. Ubuntu has a graphical App Center that makes installing software easy, but learning to install apps from the command line is faster once you’re used to it, and it helps you understand how Linux works. The same commands also work on other Debian-based distributions, such as Linux Mint and Debian itself.
How Software Works in Linux
On Linux, software usually comes as packages rather than .exe setup files. A package contains the program plus information about the other packages (libraries) it needs. A package manager installs packages, downloads any dependencies automatically, and keeps everything up to date.
The two most common package formats are DEB (used by Debian, Ubuntu and Linux Mint) and RPM (used by Fedora, Red Hat and openSUSE). Ubuntu uses DEB packages with the APT package manager, and also supports Snap packages.
Note: Installing software requires administrator rights, so the commands below start with sudo, which will ask for your password.
Method 1: Install an App from Ubuntu’s Repositories (APT)
This is the easiest and most common method. Ubuntu’s repositories contain thousands of free apps. You need an internet connection.
Step 1: Open a terminal by pressing Ctrl + Alt + T, and update the package list:
sudo apt updateStep 2: Search for the app you want. For example, to search for VLC:
apt search vlcStep 3: Install the package using its name:
sudo apt install vlcIf you’re asked “Do you want to continue?”, type Y and press Enter.
To remove an app later, use sudo apt remove vlc.
Method 2: Install a Downloaded .deb File
Some apps, such as Google Chrome or Foxit Reader, are offered as a .deb file on their website.
Step 1: Open a terminal and go to the folder where you saved the file. For example, if it’s in your Downloads folder:
cd ~/DownloadsYou can use the ls command to list the files in the folder.
Step 2: Install the package (replace filename.deb with the actual file name):
sudo apt install ./filename.debUsing apt with ./ installs the file and automatically downloads any missing dependencies. The older method, sudo dpkg -i filename.deb, also works, but if it reports missing dependencies, run sudo apt -f install afterwards to fix them.
Here, sudo runs the command with administrator rights, and dpkg is the low-level tool that installs, removes and manages .deb packages (-i means install).
Method 3: Install a Snap Package
Snap packages include everything the app needs and work on most Linux distributions. To install one, for example the Spotify app:
sudo snap install spotifyYou can search for snaps with snap find appname.
Method 4: Install from Source Code (tarball)
Some open-source software is distributed as source code in a compressed archive called a tarball, with an extension such as .tar.gz, .tgz or .tar.bz2. Use this method only if the app isn’t available as a package.
Step 1: Extract the archive:
tar -xzvf filename.tar.gzFor .tar.bz2 files, use -xjvf instead. The options mean: x = extract, z = decompress gzip (.gz) files, j = decompress bzip2 (.bz2) files, v = list the files as they’re extracted, and f = the archive file name follows.
Step 2: Go into the extracted folder with cd, then build and install the software. You’ll usually need the build tools first (sudo apt install build-essential):
./configure
make
sudo make install./configure checks that your system has everything needed to build the software, make compiles the source code, and make install installs it.
Note: Most tarballs include a README or INSTALL file with specific instructions. Read it first, for example with less README.


thank a lot
you just saved me
hi friend, i am using redhat 5, i have a problem to install a third party softwares like open office, adobe reader. can you help me please.