![]() A packaging system is a way to provide programs and applications for installation. I guess you already know that Ubuntu is derived from Debian Linux. This makes managing packages easier on Debian-based distros. The apt-get is a set of command line tools that allow you to install, remove and update deb packages installed via the APT (Advanced Package Tool) in Debian and Ubuntu. In this guide for beginners, I am going to explain various of apt-get commands with examples so that you can use them like an expert Linux user. Now, you might be aware of a few apt-get commands and their usage, but you might not know some others. In fact, first on the list of things to do after installing Ubuntu is to use apt-get update and apt-get upgrade. I have written in detail on the difference between apt and apt-get.If you have started using Ubuntu or any Ubuntu-based Linux distribution, such as Linux Mint, elementary OS, etc., you must have come across the apt-get command by now. apt is more structured and provides you with necessary options needed to manage packages.īottom line: apt = most common used command options from apt-get, apt-cache and apt-config. With apt, you don’t have to fiddle your way from apt-get to apt-cache to apt-config. apt consists some of the most widely used features from apt-get, apt-cache and apt-config leaving aside obscure and seldom used features. The apt commands have been introduced to solve this problem. On the other hand, the most commonly used package management commands are scattered across apt-get, apt-cache and apt-config. You see, these commands are way too low level and they have so many functionalities which are perhaps never used by an average Linux user. If you have used apt-get commands, you might have come across a number of similar commands such as apt-cache, apt-config etc. Another popular tool is Aptitude with both GUI and command-line options. apt-get is one such command-line tool which is widely popular. There are various tools that interact with Advanced Packaging Tool (APT) and allow you to install, remove and manage packages in Debian based Linux distributions. You can enable/disable the install progress via: # echo 'Dpkg::Progress-Fancy "1" ' > /etc/apt//99progressbar policy: works just like apt-cache policy.edit-sources: edit sources.list using $EDITOR.full-upgrade: a more meaningful name for dist-upgrade.upgrade: the same as apt-get upgrade -with-new-pkgs.install,remove: adds progress output during the dpkg run. ![]() update: like the regular apt-get update with color output enabled, but apt update also shows the number of upgradeable packages (if any).The full record is still available via apt-cache show of course. show: works like apt-cache show but hide some details that people are less likely to care about (like the hashes).search: works just like apt-cache search but sorted alphabetically.list: which is similar to dpkg list and can be used with flags like.The commands are the same as their apt-get/apt-cache counterparts but with slightly different configuration options.Ĭurrently the apt binary supports the following commands: The big news for this version is that we included a new “apt” binary that combines the most commonly used commands from apt-get and apt-cache. Take a look at this post for more information on the new tool:Ī synopsis of the above link (with corrections *): To be backward compatible like apt-get(8). Note from apt(8): The `apt` command is meant to be pleasant for end users and does not need apt is designed for end-users (human) and its output may be changed between versions. apt-get and apt-cache's most commonly used commands are available in apt.Īpt-get may be considered as lower-level and "back-end", and support other APT-based tools. They are very similar command line tools available in Trusty (14.04) and later.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |