apt и apt-получать обновления различных пакетов

Согласно руководству Bash, Bash изначально поддерживает «интерфейс редактирования командной строки в стиле vi». Чтобы использовать его, добавьте set -o vi в ваш файл ~/.bashrc.

По умолчанию вы будете в режиме ввода; нажмите Esc, чтобы войти в командный режим. В руководстве Bash перечислены доступные вам команды.

3
задан 28 July 2017 в 23:10

3 ответа

Из man apt:

   upgrade (apt-get(8))
       upgrade is used to install available upgrades of all packages
       currently installed on the system from the sources configured via
       sources.list(5). New packages will be installed if required to
       statisfy dependencies, but existing packages will never be removed.
       If an upgrade for a package requires the remove of an installed
       package the upgrade for this package isn't performed.

Итак, для того, чтобы зависимости удовлетворялись, apt собирается установить новые приложения. Где apt-get указывает, что under no circumstances are currently installed packages removed, or packages not already installed retrieved and installed. Приложения, которые находятся в held back на apt-get, вы использовали бы как dist-upgrade вместо upgrade, как это было бы с помощью только приложения apt.

Из man apt-get:

   upgrade
       upgrade is used to install the newest versions of all packages
       currently installed on the system from the sources enumerated in
       /etc/apt/sources.list. Packages currently installed with new
       versions available are retrieved and upgraded; under no
       circumstances are currently installed packages removed, or packages
       not already installed retrieved and installed. New versions of
       currently installed packages that cannot be upgraded without
       changing the install status of another package will be left at
       their current version. An update must be performed first so that
       apt-get knows that new versions of packages are available.

И описания обоих:

   apt provides a high-level commandline interface for the package
   management system. It is intended as an end user interface and enables
   some options better suited for interactive usage by default compared to
   more specialized APT tools like apt-get(8) and apt-cache(8).

   apt-get is the command-line tool for handling packages, and may be
   considered the user's "back-end" to other tools using the APT library.
   Several "front-end" interfaces exist, such as aptitude(8), synaptic(8)
   and wajig(1).

Надеюсь, что это поможет!

3
ответ дан 22 May 2018 в 20:03
  • 1
    А это все объясняет. Например, libxatracker2 - это один из пакетов, который был сохранен на apt-get upgrade, потому что он зависит от libllvm4.0, но быстрый apt list --installed | grep 'libllvm' показал мне, что я только libllvm3.8 установил. apt upgrade установил новую зависимость и смог обновить исходный пакет. – Simon Merkelbach 29 July 2017 в 01:46
  • 2
    @SimonMerkelbach Я первоначально начал с команд apt-get, но как только я узнал, что apt делает, я переучился, чтобы только запустить apt с этого момента. Мне нравится, что когда он обновляется, он заботится о зависимостях для меня. знак равно – Terrance 29 July 2017 в 01:52
  • 3
    Если вы идете вниз, по крайней мере объясните, почему вы это сделали. – Terrance 31 July 2017 в 04:15
  • 4
    На всякий случай, когда ты имел в виду меня, я поддержал тебя и не знаю, почему кто-то мог бы ответить на ваш ответ. Это помогло мне. – Simon Merkelbach 31 July 2017 в 12:54
  • 5
    Я знаю, что ты этого не сделал. :) Я всегда надеялся, что когда кто-то снизит принятый ответ, по крайней мере, порядочность объяснит, почему они чувствовали, что им нужно это делать. – Terrance 31 July 2017 в 16:09

Из man apt:

upgrade (apt-get(8)) upgrade is used to install available upgrades of all packages currently installed on the system from the sources configured via sources.list(5). New packages will be installed if required to statisfy dependencies, but existing packages will never be removed. If an upgrade for a package requires the remove of an installed package the upgrade for this package isn't performed.

Итак, для того, чтобы зависимости удовлетворялись, apt собирается установить новые приложения. Где apt-get указывает, что under no circumstances are currently installed packages removed, or packages not already installed retrieved and installed. Приложения, которые находятся в held back на apt-get, вы использовали бы как dist-upgrade вместо upgrade, как это было бы с помощью только приложения apt.

Из man apt-get:

upgrade upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list. Packages currently installed with new versions available are retrieved and upgraded; under no circumstances are currently installed packages removed, or packages not already installed retrieved and installed. New versions of currently installed packages that cannot be upgraded without changing the install status of another package will be left at their current version. An update must be performed first so that apt-get knows that new versions of packages are available.

И описания обоих:

apt provides a high-level commandline interface for the package management system. It is intended as an end user interface and enables some options better suited for interactive usage by default compared to more specialized APT tools like apt-get(8) and apt-cache(8). apt-get is the command-line tool for handling packages, and may be considered the user's "back-end" to other tools using the APT library. Several "front-end" interfaces exist, such as aptitude(8), synaptic(8) and wajig(1).

Надеюсь, что это поможет!

3
ответ дан 18 July 2018 в 09:29

Из man apt:

upgrade (apt-get(8)) upgrade is used to install available upgrades of all packages currently installed on the system from the sources configured via sources.list(5). New packages will be installed if required to statisfy dependencies, but existing packages will never be removed. If an upgrade for a package requires the remove of an installed package the upgrade for this package isn't performed.

Итак, для того, чтобы зависимости удовлетворялись, apt собирается установить новые приложения. Где apt-get указывает, что under no circumstances are currently installed packages removed, or packages not already installed retrieved and installed. Приложения, которые находятся в held back на apt-get, вы использовали бы как dist-upgrade вместо upgrade, как это было бы с помощью только приложения apt.

Из man apt-get:

upgrade upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list. Packages currently installed with new versions available are retrieved and upgraded; under no circumstances are currently installed packages removed, or packages not already installed retrieved and installed. New versions of currently installed packages that cannot be upgraded without changing the install status of another package will be left at their current version. An update must be performed first so that apt-get knows that new versions of packages are available.

И описания обоих:

apt provides a high-level commandline interface for the package management system. It is intended as an end user interface and enables some options better suited for interactive usage by default compared to more specialized APT tools like apt-get(8) and apt-cache(8). apt-get is the command-line tool for handling packages, and may be considered the user's "back-end" to other tools using the APT library. Several "front-end" interfaces exist, such as aptitude(8), synaptic(8) and wajig(1).

Надеюсь, что это поможет!

3
ответ дан 24 July 2018 в 19:20

Другие вопросы по тегам:

Похожие вопросы: