Apt-get remove man pages
The tutorial does not explain how to remove a repository added with add-apt-repository. The --remove option mentioned on the man page for Ubuntu A little precision though: besides maybe LMDE, in Linux Mint the password you have to enter for sudo is your own, not the one for root. Clear, concise tutorial with steps and definitions clearly explained for learning or memory refresh.SEE VIDEO BY TOPIC: Linux - Install Software on Linux Server (apt-get)
SEE VIDEO BY TOPIC: How to Search, Install, and Uninstall Software on Ubuntu Using TerminalContent:
How to tell the difference between apt-get upgrade, apt-get dist-upgrade, and do-release-upgrade
In fact, first in the list of things to do after installing Ubuntu is to use apt-get update and apt-get upgrade. Now, you might be aware of a few apt-get commands and their usage, but you might not be aware of some others. In this guide for beginners, I am going to explain various of apt-get commands with examples so that you can use them as well as an expert Linux user.
Download apt-get command cheatsheet for future reference. You can print it or save it for offline viewing. Ubuntu is derived from Debian Linux. Debian uses the dpkg packaging system. A packaging system is a way to provide programs and applications for installation. There are already dpkg commands to manage it, but apt is a more user-friendly way to handle packages.
You can use it to find and install new packages, upgrade packages, clean your packages, etc. In fact, this is the first command you need to run on any Debian-based Linux system after a fresh install. Once you have updated the package database, you can upgrade the installed packages. The most convenient way is to upgrade all the packages that have updates available. You can use the command below for this purpose:. The command apt-get upgrade is very obedient. It never tries to remove any packages or tries to install a new package on its own.
The command apt-get dist-upgrade, on the other hand, is proactive. It looks for dependencies with the newer version of the package being installed and it tries to install new packages or remove an existing ones on its own. But there is a risk with it. It will attempt to upgrade the most important packages, at the expense of the less important ones.
This is a very common confusion. You are not the only one to be confused by the terms update and upgrade. For example, if you have XYX package version 1. When you do an apt-get upgrade after apt-get update, it upgrades the installed packages to the newer version. This is the reason why the fastest and the most convenient way to update Ubuntu is to use this command:.
It searches in package names and their short descriptions, and shows result based on that. If you just want to search the packages with specific package names, you can use the command below:. Once you know the exact package name, you can get more information about it, such as version, dependencies, etc.
Suppose I wanted to install Pinta image editor. The good thing about this command is that it has auto-completion. So if you are not sure about the exact package name, you can type a few letters and press tab, and it will suggest all the packages available with those letters.
For example:. You are not restricted to installing just one package at a time. You can install several packages at a time by providing their names:. Suppose you already have a package installed, but you used the install command for it anyway. It sounds weird, but you may have reasons to do that. By default, the latest version available in the repository will be installed for any application.
You would need to know the exact version number that you wanted to install. You can also remove packages with it.
All you need to do is to use the command in this manner:. Auto-completion works here as well. So just start typing package name and press tab, and it will suggest all the installed packages starting with those letters. Another way of uninstalling packages is to use purge.
The command is used in the following manner:. Of course, you will be asked to override the existing configuration files when you install it again. Purge is particularly useful when you have messed up with the configuration of a program, when you want to completely erase its traces from the system and start afresh. Another way is to use autoclean. Another way to free up disk space is to use autoremove. It removes libraries and packages that were installed automatically to satisfy the dependencies of another installed package.
If that package is removed, these automatically installed packages are useless in the system. This command removes such packages. This is a command-line way of cleaning a Linux system. There is more to apt-get, but this much should give you a pretty good start. You can always look up the man pages to get more information.
How do you like this guide to apt-get commands in Linux? Was it helpful to you and clear enough to understand? Your feedback will help in creating more such guides in the near future. I am an avid Linux lover and open source enthusiast. I use Ubuntu and believe in sharing knowledge. Apart from Linux, I love classic detective mysteries. I'm a huge fan of Agatha Christie's work. Thanks for the clarification! I just got a RPI and this is very helpful. Who makes them and what are they for?
Thanks :. Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page. Exclusive bonus: Download apt-get command cheatsheet for future reference. Like what you read?
Close dialog. Session expired Please log in again. Copy link. Copy Copied.
APT Cheat Sheet
Don't confuse the three commands used for upgrading a Debian- or Ubuntu-based machine. Instead, learn what each can do. How to upgrade a Debian-based Linux distribution--let me count the ways. There's an apt-get upgrade, apt-get dist-upgrade, and do-release-upgrade. Say what?
How to use Linux Commands
TIP Installing the same selection of packages several times. TIP Removing and installing at the same time. TIP apt --reinstall and aptitude reinstall. Installation of the unstable version of spamassassin. TIP apt-cache policy. Download the ebook. APT is a vast project, whose original plans included a graphical interface. It is based on a library which contains the core application, and apt-get is the first front end — command-line based — which was developed within the project.
Reducing the size of the Debian Installation Footprint
Join , subscribers and get a daily digest of news, geek trivia, and our feature articles. APT, the Advanced Package Tool from the Debian project, is for managing packages by using a lot of separate tools to accomplish various tasks. In the past, users needed to know multiple command structures like apt-get, apt-cache, apt-config, and many more to utilize the full feature-set of APT. APT was created originally to solve a lot of package management problems like putting an end to the dependency hell that so many people experienced in the early days of Linux-based operating systems. The documentation related to APT is scattered in various different tools and in some cases, such as the main apt command, practically impossible to find.
Unless the -h , or --help option is given, one of the commands below must be present. A specific version of a package can be selected for installation by following the package name with an equals and the version of the package to select. This will cause that version to be located and selected for install. Alternatively a specific distribution can be selected by following the package name with a slash and the version of the distribution or the Archive name stable, testing, unstable.
Advanced Package Tool , or APT , is a free-software user interface that works with core libraries to handle the installation and removal of software on Debian , Ubuntu , and related Linux distributions. APT is a collection of tools distributed in a package named apt. Three such programs are apt , apt-get and apt-cache. They are commonly used in examples of APT because they are simple and ubiquitous. The apt package is of " important " priority in all current Debian releases, and is therefore included in a default Debian installation. APT can be considered a front-end to dpkg , friendlier than the older dselect front-end.
In fact, first in the list of things to do after installing Ubuntu is to use apt-get update and apt-get upgrade. Now, you might be aware of a few apt-get commands and their usage, but you might not be aware of some others. In this guide for beginners, I am going to explain various of apt-get commands with examples so that you can use them as well as an expert Linux user. Download apt-get command cheatsheet for future reference. You can print it or save it for offline viewing.
It is intended as an end user interface and enables some options better suited for interactive usage by default compared to more specialized APT tools like apt-get 8 and apt-cache 8. Much like apt itself, its manpage is intended as an end user interface and as such only mentions the most used commands and options partly to not duplicate information in multiple places and partly to avoid overwhelming readers with a cornucopia of options and details. Other commands operate on this data to e. New packages will be installed if required to statisfy dependencies, but existing packages will never be removed.
Using apt-get Commands In Linux [Complete Beginners Guide]