To manage programs, specialized tools were created for Linux. Linux application software often comes packaged. How to Use APT Package Manager on Ubuntu Linux? Apt-get is the Ubuntu package manager by default.
A software utility called a package manager is used by Linux operating systems to ensure that the software is correctly installed and up to date. It also maintains a current list of software that is accessible, which is kept outside in a database known as a repository.
Does this tutorial demonstrate How to Use APT Package Manager on Ubuntu Linux?
- An operating system for Linux
- Access to a command line or terminal
Preinstalled in Ubuntu and Debian-based Linux is the apt-get program. We must utilize the Ubuntu terminal because apt-get is a command-line tool.
Choose Terminal from the system menu’s Applications > System Tools section. Alternatively, you can launch Terminal by pressing Ctrl + Alt + T.
Adapt updates to the Ubuntu Package Repositories
Before installing a new application, it’s a good habit to update your local software list.
Enter the following in a terminal on Ubuntu to update your local software list:
Doing sudo apt-get update
The repositories will be checked by your system for new data. When finished, the result displays done.
A Package’s Installation Using apt
Installing the software package known as software-properties-common is one technique to add repositories. The add-apt-repository command is enabled by this package, which also prevents Ubuntu’s typical “Add-Apt-Repository Command Not Found” issue.
You can learn How to Use APT Package Manager on Ubuntu Linux? in the section below. Type the following in your terminal window:
sudo apt-get install software-properties-common
Your machine will connect to the repositories, download the necessary files, and install the program. The output will inform you and display the most recent version if you already have the most recent version.
After that is finished, type the next:
Add-apt repository: [repository string] with sudo
Put the name of the repository you’re adding in place of [repository string]. On the website of the program creator, the name is typically listed.
Run another update as soon as that is finished.
Using apt, Update Installed Software
Apt-get can simultaneously scan for and install software updates to all of your packages, which is a useful function. Typically, a schedule takes care of this automatically.
However, you can use the following command to manually check for and apply updates, including those for your main operating system:
Using sudo apt-get upgrade
Your computer will make contact with the servers and begin downloading all of the updates. This could take a while. Allow the procedure to finish.
Remove the Package
How to Use APT Package Manager on Ubuntu Linux? On Ubuntu, uninstalling or removing a package is a simple operation.
Put the following in:
Using sudo apt-get uninstall [package name]
Change [package name] to the application’s system name. In case there are any mistakes, make sure to double-check the name.
Do you now understand how to use apt to manage packages How to Use APT Package Manager on Ubuntu Linux? To find out more about the differences between the apt and apt-get commands, read this article.
For Linux users, package managers are a remarkably useful feature. They take care of the majority of the grunt work for you, checking for updates and dependencies. You have a great deal of control over your Linux system if you have a basic understanding of apt-get.