How does apt get work




















Upgrade will attempt to gently upgrade the whole system. Upgrade will never install a new package or remove an existing package, nor will it ever upgrade a package that might cause some other package to break.

This can be used daily to relatively safely upgrade the system. Upgrade will list all of the packages that it could not upgrade, this usually means that they depend on new packages or conflict with some other package. Install is used to install packages by name.

The package is automatically fetched and installed. This can be useful if you already know the name of the package to install and do not want to go into a GUI to select it. Any number of packages may be passed to install, they will all be fetched. To display a list of packages satisfying certain criteria such as show matching apache2 packages, run apt list apache. Alternatively, you can use apt-cache command to list all repositories.

Skip to content Android Windows Linux Apple. Home » Android. See also Best answer: Why does my Android Box keep restarting?

See also How do I change screen size in Linux? Like this post? These are all possibly-compressed plain-text files. The release file contains checksums for other files apt-get is going to download, like Packages. The Packages. The other interesting directory is source instead of binary-amd That's used for your deb-src entries; it contains info about source packages and is otherwise fairly similar. There are some other things all of them optional, I believe that can be part of the repository i.

All these files are plain text. They can, in theory, be created by hand. In practice, everyone uses one of these repository generation tools. Here—and I caution this was a choice made a long time ago, so may be outdated—we use mini-dinstall. The output of those tools are ordinary files or, at worst, symlinks. You can rsync them over to whatever web server you want. 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. How does apt-get really work? Ask Question. Asked 4 years, 4 months ago. Active 1 month ago.

Viewed 16k times. In addition to generally how it works, I have the following specific questions: How does the client that is accessing the apt repository keep track of the files?

Must the repository be hosted on the same operating system i. How are the locations to install files specified?

Is this specified by the. How is a remote machine accessing the repository?



0コメント

  • 1000 / 1000