Saya biasanya memutakhirkan mesin saya dengan:
sudo apt-get update && time sudo apt-get dist-upgrade
Di bawah ini adalah kutipan dari man apt-get
. Menggunakan pemutakhiran mematuhi aturan: dalam keadaan apa pun paket yang diinstal saat ini dihapus, atau paket yang belum diinstal diambil dan diinstal. Jika itu penting bagi Anda, gunakan apt-get upgrade
. Jika Anda ingin hal-hal "hanya berfungsi", Anda mungkin ingin apt-get dist-upgrade
memastikan dependensi diselesaikan.
Untuk memperluas alasan mengapa Anda ingin memutakhirkan daripada memperbarui , jika Anda seorang administrator sistem, Anda perlu dapat diprediksi. Anda mungkin menggunakan fitur-fitur canggih seperti pinning yang tepat atau menarik dari kumpulan PPA (mungkin Anda memiliki PPA internal), dengan berbagai otomatisasi tersedia untuk memeriksa sistem Anda dan peningkatan yang tersedia alih-alih selalu dengan bersemangat memperbarui semua paket yang tersedia. Anda akan menjadi sangat frustrasi ketika melakukan perilaku yang tidak tertulis, terutama jika ini menyebabkan penghentian layanan produksi.
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.
dist-upgrade
dist-upgrade in addition to performing the function of upgrade,
also intelligently handles changing dependencies with new versions
of packages; apt-get has a "smart" conflict resolution system, and
it will attempt to upgrade the most important packages at the
expense of less important ones if necessary. So, dist-upgrade
command may remove some packages. The /etc/apt/sources.list file
contains a list of locations from which to retrieve desired package
files. See also apt_preferences(5) for a mechanism for overriding
the general settings for individual packages.
sudo apt full-upgrade
melakukan hal serupa.