Linux

How to install packages or programs in Ubuntu from the terminal?

The Ubuntu operating system has several ways to install packages and programs. If you are interested in doing this process from the Ubuntu terminal, we recommend reading this article with which you will learn How to install packages or programs in Ubuntu from the terminal?

What is APT?

APT stands for “Advanced Packaging Tool” and refers to a set of tools for package management. APT is included in the database of GNU / Linux distributions and facilitates processes such as updating, installing and removing programs and packages.

What is APT for?

APT is used to manage and search for packages, as well as to request information about them to proceed with the installation and update when necessary.

APT has command lines that allow you to configure the configuration with an interface, manage the authentication of the keys and even the use of external means as means to install the packages.

How to install packages or programs in Ubuntu from the terminal?

Generally, almost all GNU / Linux distributions provide their applications from repositories. Even some actions such as configuring two or more monitors in Linux from the terminal also require repositories, since they have a catalog that is managed by developers and can be used by users.

Next, we present all the information you need to know about the process of installing packages and programs in Ubuntu using the terminal. Therefore, when you finish reading this article, you will be able to do this task without any difficulty.

Terminate from Ubuntu

Access the Ubuntu terminal

To install programs on Ubuntu Linux downloaded from the internet easily , you can use the software center or the terminal. The Ubuntu terminal  is nothing more than a system that allows you to control the operating system through commands. In this sense, with the terminal you can install local or online packages and programs using the internet.

To access the Ubuntu terminal, just press the “Ctrl + Alt + T” keys. This is the fastest and easiest shortcut with which you can run the platform.

Update packages in Ubuntu from terminal

Once you access the Ubuntu terminal, it is essential that you update the packages. In this way, you will be able to refresh the list of components in the repositories and install the packages that contain new versions.

To update the packages for the APT-based Ubuntu system, you must type the following command line: $ sudo apt update. Then, press the “Enter” key to execute the statement in the terminal.

Apply package updates

After updating the list of packages, you must apply the updates of the available packages in order to preserve the old packages and update only those that require it.

To apply the package updates, type in the Ubuntu terminal: $ sudo apt upgrade and then press the “Enter” key.

Install the package or program in Ubuntu from the terminal

If you want to install packages or programs, it is necessary to use a command which is in charge of indicating the main package and APT looks for the dependencies. To achieve this, write the following syntax: $ sudo apt install package_name where “package_name” is the actual name of the main package you want to install.

APT will perform a search of all the necessary dependencies and will request a confirmation to carry out the installation of the packages on the system. You can install multiple packages at the same time by separating each of their names with a blank space.

Ubuntu terminal console

What should I do if I don’t know the real name of the package?

If you know the real name of the package you want to install you can use this syntax: $ sudo apt list –parameter. The “parameter” should be replaced by –upgradable so that you can see the list of packages that can be updated.

You can also locate a specific package with the command: $ sudo apt search package_name. The system will show you a list of results associated with your search term.

Receive more information before installing packages or programs in Ubuntu from the terminal

If you want to know more information about a specific package, use the command: $ apt show package_name. With it you will obtain relevant information about the dependency of this package with the others, as well as those that could generate conflicts after its installation. Finally, don’t forget to optimize and clean your Linux system with Stacer and Bleachbit . Thus, you will notice that your team will perform better.

Leave a Reply

Your email address will not be published.

Back to top button