You can try going to this link. The screenshot below shows its contents. Downloading and extracting the Sources.
You can open it using any text editor and it reveals a massive file with more than 28, lines! This is the reason we need to run this command regularly before we install software so that the lists we use to get our software packages are always up-to-date!
So the next logical question to ask is, is there a better way to quickly remind yourself of what this command means without going onto the internet? The answer is yes, it is possible and the best way to do this is by using the man command from the CLI! To scroll this page, you can use the Enter button to go one line at a time, or you can use the space-bar to go one page at a time.
If you wish to close this and get back to the terminal, just press the key Q. Now that you know how to move around man pages, let us see if what we just learned is there on the man page for the apt-get command.
As shown in the screenshot above, if you have a look under the Description sub-heading, you will see the following lines. For example, when using a Debian archive, this command retrieves and scans the Packages.
An update should always be performed before an upgrade or dist-upgrade. Please be aware that the overall progress meter will be incorrect as the size of the package files cannot be known in advance. As you can see, we can get the needed information from within the Linux CLI! Before I leave you, I just wanted to make one more point, there is another command as given below which does exactly the same thing.
Notice here we use the command apt instead of the command apt -get. Both apt-get and apt has their place in the Linux operating system, you can learn more about their differences in the article given below. Alright, I will stop here, hope you have enjoyed reading this article and found this article useful! We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. Forums New posts Search forums. What's new New posts Unanswered threads Latest activity.
Members Current visitors. Log in Sign up. Search titles only. Search Advanced search…. New posts. Search forums. Log in. Sign up. Computer problem? Then, with one of the two commands, you can decide to check the available version of a package with the releases versions on the official site or on the official GitHub. When you have listed the versions to choose the specific one, you can install it with the apt-get install command followed by the name and the version of the package.
So, you need to follow the syntax as below:. For some reason, you could need to make sure that the installation will not encounter any problem. To do that, it is possible to simulate the installation with the -s parameter respecting the syntax. This will prevent those two commands from executing other commands such as a shell. Note that doing so may have unintended results as well.
For example after installing a new service apt may not be able to start the associated service. This is my attempt, so the user would be use sudo to run this script, but no others.
Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more.
Asked today. Active today.
0コメント