![]() Let us start by exploring the answer to the question “What does apt-get do?” I can see that the above paragraph has too many “technical terms” (which I promised not to use!) but that is just the short version of the answer to explain the command “ sudo apt-get update -y“, so do not worry if you don’t understand every word in that paragraph!īy the end of this article we will get back to this short answer version and by that time I am sure you will be able to understand what every word meant in the short answer above! What is the meaning of the command “ sudo apt-get update -y”? sudo apt-get update is the command used to updates the package index files to get the latest list of available packages in the repositories, the -y option will not do anything as as the apt-get update does not prompt the user for any responses. ![]() Let us see what this command does, how it does that, and the reason you need to do this every time you need to install an app on your Linux computer.Īlso let us see what does the -y do in this case and see if that is really necessary! (Spoiler alert: In this case, the -y does not do anything!)įor those of you in a hurry, here is the short version of the answer! The Short Version of the Answer In this article, I have tried to explain what this command means from a beginner’s perspective avoiding unnecessary “technical terms” and I have tried to keep this article concise so that you can get through the entire article in about 10 to 20 mins max! I guess to beginners, it just feels like a magic spell to get something installed! In this quick write-up, you have learned about upgrading packages on Ubuntu via the command line.On either cases, I was just happy that I was able to type something in the Terminal and that it actually worked and did what I wanted it to do! I did not pay much attention to what I actually typed in. sudo apt install unattended-upgrades -d Conclusion sudo apt install unattended-upgradesīut, if you want to run an interactive installation or upgrade use the (-d) display parameter. Use the unattended upgrade to silently install updates without user interaction on your Ubuntu system. These upgrades are highly recommended for the production system to keep them secure. But we still recommend you apply security updates to your systems. ![]() You may don’t like to update all the packages on your Ubuntu system. sudo apt dist-upgrade Apply Security Updates Only It also removes obsolete packages from your system. Now, run the dist-upgrade which intelligently handles changing dependencies with new versions of packages. Then run the upgrade command to upgrade currently installed packages to the latest available versions from the configured sources. Use the ‘ apt update‘ command to download the package information from all the configured sources from all repositories on your system. You can also apply only security updates silently via the command line. This tutorial will help you to update the latest packages on a Ubuntu system. You must keep the Ubuntu packages updated. All the Linux distributions provide security and package upgrades from time to time. It is recommended for all Linux system users to keep packages up to date.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |