APT commands: Difference between revisions

From ALT Linux Wiki
(Created page with "=apt-get commands= ==Update information about repositories== Initially need to get indexes, which contains actual sets of packages and links to it. {{Note|This command need to run every time when: *you searching new version of package *you installing package *you upgrade installed packages *you use apt-cache}} This running with next command: <source lang="text" highlight="1"> # apt-get update </source> Example of running: <source lang="text" highlight="1"> # apt-get u...")
 
No edit summary
Line 32: Line 32:


After running of this command, apt will update own cache of new information.
After running of this command, apt will update own cache of new information.
==System upgrade==

Revision as of 11:52, 31 January 2024

apt-get commands

Update information about repositories

Initially need to get indexes, which contains actual sets of packages and links to it.

Note: This command need to run every time when:
  • you searching new version of package
  • you installing package
  • you upgrade installed packages
  • you use apt-cache


This running with next command:

# apt-get update

Example of running:

# apt-get update
Get:1 http://ftp.altlinux.org p10/branch/x86_64 release [4223B]
Get:2 http://ftp.altlinux.org p10/branch/x86_64-i586 release [1665B]
Get:3 http://ftp.altlinux.org p10/branch/noarch release [2844B]
Fetched 8732B in 0s (89.8kB/s)
Get:1 http://ftp.altlinux.org p10/branch/x86_64/classic pkglist [23.8MB]
Get:2 http://ftp.altlinux.org p10/branch/x86_64/classic release [137B]
Get:3 http://ftp.altlinux.org p10/branch/x86_64-i586/classic pkglist [17.4MB]
Get:4 http://ftp.altlinux.org p10/branch/x86_64-i586/classic release [142B]
Get:5 http://ftp.altlinux.org p10/branch/noarch/classic pkglist [7164kB]
Get:6 http://ftp.altlinux.org p10/branch/noarch/classic release [137B]
Reading Package Lists... Done
Building Dependency Tree... Done

After running of this command, apt will update own cache of new information.

System upgrade