UPDATE PERL MAC COMMAND LINE INSTALL
sudo apt-get install -y outputĪs you can see, the outputs are basically the same, with and without the -y option! A long time back when apt-get update used to be interactive, this was necessary but now this has been deprecated and the -y option is no longer needed!īut still the command works because, the apt-get command will accept any valid global options and simply ignore them if they don’t apply to the present case. Now let us try the same command with the -y option. Here using the sub-command update we are telling our manager to contact all the equipment manufacturers and get data regarding the latest available equipment and redo his excel sheet!
UPDATE PERL MAC COMMAND LINE SOFTWARE
As you can see the last line says “Reading package lists… Done” which means that my computer went ahead and read all the available software in the repos and compared them with the version present on my end and found that they are up-to-date!Ĭontinuing with our factory analogy, assume our manager is maintaining an excel sheet containing the list of parts available from various equipment manufacturers.
![update perl mac command line update perl mac command line](https://cdn.osxdaily.com/wp-content/uploads/2014/02/terminal-icon.png)
All of these web addresses are repos that contain software.
![update perl mac command line update perl mac command line](https://consumingtech.com/wp-content/uploads/2017/02/update-apps-homebrew.png)
Your output might look a bit different than mine, but the important things to note here are the “Hits”.
![update perl mac command line update perl mac command line](https://i.ytimg.com/vi/_X9UPThjJvg/maxresdefault.jpg)
The screenshot below shows how the output of our command looks like when given without the option “-y” output: sudo apt-get update without the “-y” The apt-get command is responsible for installation, removal, and updating of software in our system.Ī good analogy is to think of your computer as a factory and the apt-get command as the manager in that factory who is responsible for the installation of new equipment, removal of equipment that is no longer needed, and update desired equipment to their latest versions, while maintaining records of the equipment names and versions which are currently present in the factory. 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.
![update perl mac command line update perl mac command line](https://www.trendmicro.com/content/dam/trendmicro/global/en/migrated/security-intelligence-migration-spreadsheet/trendlabs-security-intelligence/2018/10/perl-shellbot-tcp-nickname-9.png)
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! 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.