Ubuntu has a lot of GUI-based methods for installing applications, but they take some time to search and find. Since the keyboard is usually faster than the mouse, managing your software via the command-line can be a real time-saver.
- Ubuntu Install Software Manager
- Ubuntu Install Software From Cd
- Ubuntu Install Guide Sudo
- Ubuntu Install Software Offline
- Ubuntu Install Software Center Command Line
- Ubuntu Install Software Offline
Mar 23, 2014 Ubuntu stores all of its packages in locations called software channels or repositories. A software channel is simply a location which holds packages of similar types, which can be downloaded and installed using a package manager. A package manager will store an index of all of the packages available from a software channel. “How to install an application in Ubuntu” The Most asked question by the majority of newbie. People who have migrated from windows to Ubuntu or trying their luck with Ubuntu, the basic problem they face is installing software on Ubuntu.
Linux manages software through packages, individual units of software that contain user interfaces, modules, and libraries. Most applications link several co-dependent packages together, and still others allow you to choose which packages to install and which to leave out at your own discretion. This can get confusing, so there’s a package manager at your disposal to help
Each Linux distribution has its own package management system. For our own near and dear Ubuntu, it’s the Advanced Packaging Tool. It has a family of commands that allows you to add repositories; search for, install, and remove packages; and even simulate upgrades and such. The commands are fairly easy to remember and use, so you’ll be managing your system’s software in no time at all!
APT requires super-user permissions, as it deals with core aspects of the system, so in Ubuntu you’ll need to preface most commands with “sudo.”
Searching for Packages
The command to search for software is:
apt-cache search [search term 1] [search term 2] … [search term n]
Replace [search terms] but don’t use brackets. You’ll get an output like this:
You can search for terms in the description of packages, say for a solitaire game, or by package name. Some searches may yield a ton of results, so you can scroll through the list with the following command:
apt-cache search [search terms] less
There’s a pipe in the middle of that command (it shares a key with ). The less command will allow you to scroll through your list with the arrow keys, page up/down keys, and space, b, and enter. Hit q to exit the list and go back to the prompt.
You can find more software in repositories found online. Take, for instance, Ubuntu Tweak, a program that lets you change some hidden or otherwise difficult-to-change settings for your system. It’s hosted at another repository. If you add the repository instead of downloading and installing just the package, the system will notify you of updates and automatically keep it up-to-date for you. You can manually add and change repositories by editing APT’s sources file:
sudo nano /etc/apt/sources.list
But Ubuntu 9.10 Karmic Koala changed that. There’s an easier way!
sudo add-apt-repository [repository name here]
Let’s look at Ubuntu Tweak’s repo to see what it’ll look like in practice:
sudo add-apt-repository ppa:tualatrix/ppa
After adding repositories, you have to update your package list.
sudo apt-get update
That will update the package lists from all repositories in one go. Remember to do this after every added repository!
Now that you’ve added your software repo and updated your package list, and found the package name you need, you can install it.
sudo apt-get install [package name 1] [package name 2] … [package name n]
This will download and install all of the packages listed. If there are dependencies – other prerequisite packages – they will also be installed. Sometimes you’ll also see a list of recommended but optional packages to go along with your selection. Sometimes, you’ll also see a confirmation prompt, though not always.
Often, you’ll see a core package with other linked packages, so installing this one will automatically install the dependencies and sometimes its associated packages, too.
If you want to get rid of a program, you can uninstall its associated packages.
sudo apt-get remove [package name 1] [package name 2] … [package name n]
If you want to get rid of the configuration files and associated directories (usually in the user’s home directory), you’ll want to add the purge option:
sudo apt-get remove –purge [package name 1] [package name 2] … [package name n]
There are two dashes there. This will come in handy if a program isn’t working properly. By purging upon removal, you’ll can have a “clean” install.
Most of the time, you can just choose the core package and the associated ones will be removed as well. If it doesn’t, you can use the following command:
Ubuntu Install Software Manager
sudo apt-get autoremove
This will automatically remove any packages that aren’t used or associated with any installed program. For example, if you got rid of a core package, autoremove will get rid of it’s associated packages and any dependencies it had, so long as no other program is using them. It’s a great way to clean up any unused libraries and packages you don’t need.
So, what if your packages need upgrading? You can upgrade individual programs with the following command:
sudo apt-get upgrade [package name 1] [package name 2] … [package name n]
Or, you can upgrade all packages by having no further arguments:
sudo apt-get upgrade
This will tell you how many and which packages need updating and will ask for a confirmation before it continues.
Remember, you may need to update first. Upgrade will replace older versions of programs with their newer versions. This is a replacement process; the same package name is required and the older version is replaced with a newer version. No completely new packages are installed and no packages are uninstalled.
Some programs don’t quite work that way. They require a package with a slightly different name to be removed and a new one with a different name to be installed. Sometimes a program’s new version has a new required package. In these cases, you’ll need to use dist-upgrade.
sudo apt-get dist-upgrade [package name 1] [package name 2] … [package name n]
sudo apt-get dist-upgrade
Now, all of the dependencies will be satisfied no matter what. If you aren’t into micro-managing your packages, then this is the command you’re going to use.
If you only want to see which packages will be upgraded if you were to hypothetically run the command, you can simulate an upgrade with the –s option.
sudo apt-get –s upgrade
This is really useful if you aren’t sure if upgrading one package will mess up other programs, which happens occasionally with things like PHP and mail server libraries.
When you download packages, Ubuntu caches them in case it needs to refer to them further. You can delete this cache and get back some hard drive space with the following command:
sudo apt-get clean
If you want to get rid of your cache, but save the newest versions of what packages you have, then use this instead:
sudo apt-get autoclean
This will get rid of the older versions which are pretty much useless, but still leave you with a cache.
Checking What’s Installed
You can see a list of all your installed packages with dpkg.
sudo dpkg –list
You can also use less to scroll through this list.
sudo dpkg –list less
You can also search through the list with the grep command.
dpkg –list grep [search term]
If something is installed, you’ll see a package name and a description.
You can also search through a more compact method:
dpkg –l ‘search term’
That option is a lowercase letter L, and your search term must be inside single quotes. You can use wildcard characters to search better as well.
APT has an interesting easter egg.
sudo apt-get moo
Enjoy your super cow powers!
Being able to manage packages and installed software via command-line can save you some time. Ubuntu’s Software Updater is often laggy on my system and it can really be a pain to have to add software repos and install packages through the Software Center, especially if you know the package names already. It’s also great for managing your system remotely via SSH. You don’t need to have a GUI running at all or deal with VNC.
There are a lot of things to learn when getting comfortable with the command-line, so you may want to check out The Beginner’s Guide to Nano, the Linux Command-Line Text Editor. There’s more to come!READ NEXT
- › How to Create a Local Account While Setting Up Windows 10
- › What Is Windows 10X, and How Is It Different?
- › How to Delete Apps on an iPhone or iPad With iOS 13
- › How to Merge Multiple Google Drive and Google Photos Accounts
- › How to Edit Any Web Page in Chrome (or Any Browser)
Before ten years ago, when I was new into the world of Ubuntu Linux, I was so confused about many things of how to do this and that. Among all those, how to install software in Ubuntu Linux is one of them. As a beginner, you also faced this sort of problem, especially when there are lot more options available for installing and removing software in Ubuntu Linux.
In this roundup, I will show you some of the popular ways of how to install software in Ubuntu Linux. I will also try to cover how to remove Ubuntu application from the system.
How To Install Software in Ubuntu Linux
For making this tutorial, I am using Ubuntu Gnome Desktop Environment. But this tutorial is also applicable for other Ubuntu-based Linux distros like Elementary OS, Linux Mint, Linux Deepin, Peppermint, etc.
1. How To Install Software in Ubuntu Using Software Center
If you have seen Google’s Play Store or Apple’s App Store, then installing software from Ubuntu software center is much easier and familiar. Ubuntu Linux comes with a default software center which let you install various software. You can search for software by its name or various categories.
You can find Ubuntu software center by following “Show Applications >> Search Ubuntu software center.”
After getting into the software center, you will find all the software by names, categories, editors pick, recommendations, etc. At the top right, the search option is there for searching for the desired application.
Resource Link: Best Linux Software: Our Editorial List of Essential Linux Apps
Once you have found the desired software, click on it which will take you into the application description page with an install button. In this page, you will get a short description and reviews of the software. Now it’s time to hit the install button.
Voila! You have just learned how to install software in Ubuntu Linux via software center.
Extra Important Tips: There are lots of application which are closed source proprietary software but does not come by default in the Ubuntu software center. That software only comes through enabling the Canonical Partner repository. In my tutorial on Best Things To Do After Installing Ubuntu, I have shown how to enable the Canonical partner repository to get access to more software.
To do so, search for software & update. In the other software tab, enables “Canonical Partners.”
Now you know how to install software in Ubuntu Linux using software center. How about uninstalling the software you have just installed. Removing software from Ubuntu software center is also very easy and straightforward. In the software center, click on the install tab, and you can see all the installed applications list with the removal option, click on remove, and it’s done.
2. How To Install Software in Ubuntu Using .deb Files
Installing a software in Ubuntu using .deb files is very easy and similar to a .exe file in Windows system. Many software providers offer their applications in a .deb file. You have to download the .deb file from software specific vendor and double click on it which will take you in Ubuntu software center with an option of install button.
There are many options available for .deb packages management. You can check out my previous tutorial on all the Possible Ways to Install deb Packages in Ubuntu Linux.
3. Install Software Using Flatpak
Basically; there are few universal package management for Linux environment namely Snaps – created by Canonical, AppImage, and Flatpak from Fedora. All these software management systems provide a universal package installing environment irrespective of what Linux distribution you are using.
Flatpak is a universal framework for installing the software in Linux and brings a cross-platform solution that means a single application built for all the Linux distros.
All the new version of Ubuntu and Linux Mint come preinstalled Flatpak support. But you need to install in on older version if you want to use Flatpak.
Enable Flatpak on Ubuntu and other Ubuntu derivatives
There is official PPA for Ubuntu (version 17.10, 16.04 or older) to install Flatpak. Run the below command into the Terminal:
For latest Ubuntu version, run the below command only:
For more information, follow the official instruction.
Flatpak application support in Software Center
There are two ways to use the Flatpak software. One is using the Ubuntu software center, and another one is using the command line interface. Command line might be a bit difficult for the new users, but here I recommend you to enable Flatpak support for Gnome software center. Run the following command to install the Gnome software plugin:
Now you can download .flatpakref file format application from software specific website or visit FlatHub – Flatpak app store.
This Gnome software plugin will allow you to open a .flatpakref file directly in Ubuntu software center and let you install or launch the application.
4. Install Software in Ubuntu Using Snap Packages
Canonical has created Snaps for providing a cross-platform solution for installing applications on any Linux distributions. It’s a universal package management system which comes with all the dependencies and libraries that software is required to run on any Linux system.
Install Snap Software Environment on Ubuntu
All the latest Ubuntu and its derivatives are well supported Snaps packages by default. But you need to install Snaps environment for Ubuntu 16.04 and older version. Run the following command into the Terminal to install Snap package management environment:
Now you can install the software by using Snaps command from software website
Or use Ubuntu software center.
5. Install Application in Ubuntu Using AppImage
Deb package, and RPM file formats are used for installing software on Debian or Ubuntu, and Fedora/SUSE based Linux distro respectively. There is a problem for the app developer that they have to maintain multiple packages for various Linux distributions. To overcome this problem, AppImage comes into the picture for offering a universal package management system for all the Linux distros.
An AppImage file format is similar to the .exe file used in Windows system. But with the. AppImage format, there is no extraction or installation, you delete AppImage, the software will be removed from Ubuntu, and double click on AppImage will run the application.
You have to follow three simple steps to run an AppImage on Ubuntu Linux.
- Download .appimage package.
- Make it executable by following Right Click on software >> Properties >> Permission Tab >> Check “Allow executing the file as program.
- Now run the program.
6. How To Install Software in Ubuntu Using Apt Commands
This another easy way to install software on Ubuntu Linux. Just like installing software from the Ubuntu software center, the command line is similar to it. The only difference is Ubuntu software center is based on graphical user interface, and an apt command is based on command line interface. Many software provides an apt command for installing software.
For example, Chromium browser has both the way, Ubuntu software center, and apt command, to install it on Ubuntu. If you want to install it then go to Ubuntu software center and give search by keyword Chromium or else just type this simple apt command into the Terminal (Ctrl+Alt+T):
Normally the apt command looks like:
Removing software is also very easy for apt command installation.
7. How To Install App in Ubuntu Using PPA
PPA – Personal Package Archive is another easy way to install software on Ubuntu Linux. Many developers want to offer the latest version of their software directly to the end users. In that case, PPA can be used as Ubuntu official software repository takes a month to include any cutting-edge software in Ubuntu software center. So many Ubuntu users may not wait for that long time rather can use PPA to install the latest version instantly.
Here I am going to show you an example of the installation of Cinnamon Desktop in Ubuntu Linux.
Note that here I have followed total three commands. First one is for adding the PPA repository to system’s source list, 2nd one is for updating the cache of software list, and the last one is for installing the specific software using PPA apt command.
8. Using Synaptic Package Manager
Synaptic Package Manager is a great alternative to Ubuntu software center. It can help you to install various software in Ubuntu Linux. You can install Synaptic Package Manager from the Ubuntu software center or use command line tool. Run the below command to install it:
Do the following things to install an app from Synaptic Package Manager.
- Search for the software or package
- Check “Mark for Installation”
- Press “Apply”
9. How To Install Software in Ubuntu Using dpkg
Installing a deb package through dpkg is a bit for advanced users but most reliable one.
- Install a package
To install a deb file, open the Terminal and run the following command:
- Resolve Dependency Errors
Run the below command if you get any dependency errors. It will fix all the errors.
- Remove the application
If you want to uninstall a software, run the command into the Terminal.
- To Reconfigure/Repair the deb installation
10. How To Install Software in Ubuntu Using the Source Code
Installing software using the source code in Ubuntu Linux is a bit complicated and not recommended for the newbie. There are many software which comes with source code, and in Linux, many users prefer to use it. Most of the source code comes in a compressed file as .tar.gz, tgz, tar.bz2, .zip, etc. You have to follow few steps to install this sort of files.
- Download the source code file.
- Extract it.
- Go to extracted folder and look for a README or INSTALL file if any which will let you know how to install or remove the specific software.
- Run the below command into the Terminal (Ctrl+Alt+T) one by one to install software:
- sudo make install
11. Installing Packages via Your Web Browser
The APT protocol (or apturl) is a simple and hassle-free way to install software in Ubuntu Linux. This way basically uses your web browser to deliver the software packages to the users. In this case, you just need to click on apturl, and it will prompt the installation process. Below is an example for installing synaptic package manager using apturl:
12. Install Python Applications via Pip – “Pip Installs Packages”
Pip is another way to install software, especially Python-based apps, in Ubuntu Linux. Pip actually a command line based software management system for apps which are written on Python programming language. It’s easy to use, and if you are a software developer, then you can use Pip to install and manage various Python packages and modules for your Python projects. Moreover, there are lots of excellent and useful Python-based software on the market, so install all those, you need to learn how to use Pip on your system.
Installing Pip in Ubuntu is straightforward. Pip varies as per the Python version and as Ubuntu latest version comes with both Python 2 and Python 3 by default, so you just need to check the Python version before going for final installation.
Ubuntu Install Software From Cd
Install Pip on Ubuntu
Run the below command to install Pip for Python 2 and Python 3 consecutively in Ubuntu Linux:
Use Pip Command
If you want to search, install or remove any Python package, then you have to learn some Pip basic command.
- To search the packages, run the below command:
This command will show you the Python Package Index.
- Install an application using pip, run the following command:
- Remove a Python package installed via pip, use the following command:
Note: You can use Pip3 instead of Pip for Python version 3.
The Last Words
Now I think it’s clear that installing software in Ubuntu Linux is easy and straightforward. The software which is not available in Ubuntu software center can be found as a .deb package or AppImage format. You can also install or remove any software via Terminal using official or unofficial PPA. If nothing doesn’t work, still there is an option of building from the source code.
Ubuntu Install Guide Sudo
Resource Link: 10 GitHub Alternatives for Hosting your Open Source Projects
Ubuntu Install Software Offline
I hope this tutorial on how to install software in Ubuntu Linux will help the beginner in the way of Linux usages. Did I miss any important ways to install software in Ubuntu Linux? Let us share your suggestions and experience in the comment section.