Unfortunately, our computers have not reached a state where we can just order the computer around the way we see robots are instructed in science fiction movies.
We are getting there with natural language processing AI, but there is an awful lot of processing involved, which is very inefficient. Due to this inefficiency, voice input is never going to replace the good old command-line interface when it comes to cloud computing and data centers. This is because in data-centers are very power-hungry and better efficiency translates into lower power consumption and lower running costs, which means more profit for the company!
Among these 3 parts, the command is mandatory. This term is used to get administrative privileges so that we can install and remove software from our computer. Usually, sudo commands are followed by a password request, this is a security measure to prevent malware from getting automatically installed on our computers. To understand what command and sub-commands mean, you can think of the main command as an app and the subcommand as a button inside that app.
So in essence, you are asking your computer to open the apt-get app and push the button named upgrade! APT stands for Advanced Packaging Tool which is a tool that is used to manage software in our system and apt-get is the software used to communicate this APT software management tool.
If you are interested to learn more about how software packages are managed in Linux I highly recommend reading the article in the link below. The kernel is a special software that takes all the available hardware resources and virtualizes and manages them.
The software packages are typically applications that we run which can make use of these hardware resources by requesting access to them through the kernel. Examples of software packages can include application software like text editors, word processors, etc. The content of the packages managed by these package managers involves the following 4 main components. This is the next question we must address. Repositories or repos for short are basically a place where verified packages are stored for easy retrieval and installation.
They can be online like the APT repository or they can be on a local folder or a DVD where you have a special collection of software that you need. You can have several repositories from which you can download and install these packages.
These can be. This is a list of packages available for installing on a given distro. This list is maintained by your Linux machine. The information in this list usually includes the locations of various repositories from which software can be installed. These locations are usually on the internet. You can view and edit this list the same way you can view any other text files using one of your favorite text editors like vs-code, gedit, nano or vim.
If you are using Ubuntu or one of its derivatives, you can also view this list by typing in the following command in the Linux terminal. Next apt command in linux with examples. Recommended Articles. Article Contributed By :. Easy Normal Medium Hard Expert.
Writing code in comment? Please use ide. Load Comments. What's New. Most popular in Linux-Unix. More related articles in Linux-Unix. We use cookies to ensure you have the best browsing experience on our website.
These packages are kept back because in order to install their new version, they need some other package which is not already installed. And as we have discussed, the apt-get upgrade only upgrades the existing packages, neither installs a new package or removes an existing one.
That is why it keeps these packages back. Sometimes, the packages are also kept back because of broken dependencies when the package which it depends on does not have a downloadable version. While with apt-get dist-upgrade, the new dependent package will be installed to resolve the dependency.
To conclude, if you want to only upgrade the packages without installing or removing them, go for the apt-get upgrade. On the other hand, if you want to upgrade no matter whether any new package is installed or the existing package is removed to fulfill dependencies, go for apt-get dist-upgrade. Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications.
As an IT engineer and technical author, he writes for various web sites. He blogs at LinuxWays. As a regular user or system administrator, you probably have used the package management tools apt or apt-get at some point in Linux.
0コメント