Let’s assume the manager has a list of files with given to him by all the equipment part manufacturers about what parts each of them produce. Your output might look a bit different than mine, but the important things to note here are the first 2 lines and the last line.Ĭontinuing with our “factory analogy”, if you “the factory owner” orders the manager to install a conveyor belt, the manager is smart enough to understand that you need an entire conveyor system, and you expect him to install everything for you. In the screenshot below I am trying to install an app named gedit, which is the default text editor for the gnome-desktop environment. Let us experiment by installing a package without the -y option and see how that goes. This option is available with many commands which execute in an interactive manner asking the user several questions with “yes/no” answers and proceed with the command execution based on our answers to those questions. The -y in the above command is usually pronounced “minus”y or “dash”y. The apt 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 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 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 “ apt install -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 “ apt install -y“? apt install -y command is usually used to download your desired application which has many configuration options from an online software repository pointed to by your sources.list configuration file and install that application on your Linux machine in a non-interactive manner asking the apt package management tool to assume “yes” to any questions that pop-up during the installation process. Let us see what this command does, how it does that, and the reason you need to use this command every now and then on your Linux computer.į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 “ apt install -y“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! 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |