Инструменты пользователя

Инструменты сайта


nix:obnovlenie_po_raznyx_distributivov

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
Следующая версия
Предыдущая версия
nix:obnovlenie_po_raznyx_distributivov [2022/09/26 15:48] – [Debian,Ubuntu] sannix:obnovlenie_po_raznyx_distributivov [2025/08/12 09:58] (текущий) – [Alpine] san
Строка 40: Строка 40:
 apt upgrade apt upgrade
 </file> </file>
-Обновить конкретные пвакеты, а не все+Обновить конкретные пакеты, а не все
 <file> <file>
 apt install --reinstall <список пакетов> apt install --reinstall <список пакетов>
Строка 69: Строка 69:
 <file> <file>
 apt purge $(dpkg -l | grep '^rc' | awk '{print $2}') apt purge $(dpkg -l | grep '^rc' | awk '{print $2}')
 +dpkg -l | grep "^rc" | awk '{print $2}' | sudo xargs dpkg -P
 </file> </file>
 +Поиск уязвимых пакетов для последующего обновления (через apt install)
 +<file>
 +debsecan --suite bullseye --format packages --only-fixed
 +</file>
 +Если установлен lsb_release, то можно так:
 +<file>
 +debsecan --suite $(lsb_release -cs) --format packages --only-fixed
 +</file>
 +Получение списка установленных пакетов с информацией о репозитории откуда он установлен
 +<file>
 +dpkg -l | grep "ii" | awk '{print $2}' | xargs -n 1 -IX sh -c "apt policy X 2>/dev/null | tr '\n' ' ';printf '\n'" | tee all_packages.txt
 +</file>
 +Определить к какому установленому пакету принадлежит файл
 +<file>
 +dpkg-query -S путь/к/файлу
 +</file>
 +Вывести список файлов в установленном пакете
 +<file>
 +dpkg -L package_name
 +</file>
 +==== Решение проблем ====
 +
 Ошибка: "NO_PUBKEY 648ACFD622F3D138" Ошибка: "NO_PUBKEY 648ACFD622F3D138"
 <file> <file>
 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
 </file> </file>
-Поиск уязвимых пакетов для последующего обновления (через apt install)+Предупреждение "Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8for details."
 <file> <file>
-debsecan --suite bullseye --format packages --only-fixed+apt-key --keyring /etc/apt/trusted.gpg list 
 +#Ищем id ключа (напр. 91E7EE5E) 
 +apt-key export 91E7EE5E | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/repo_name.gpg
 </file> </file>
 +Так тоже работает
 +<file>
 +cp /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d
 +</file>
 +См. также [[https://devicetests.com/solving-apt-key-deprecated-warning]]
 +
 ===== RHEL,Centos ===== ===== RHEL,Centos =====
  
Строка 92: Строка 123:
 dnf - почти прозрачно заменяет yum в свежих версиях RHEL,Centos dnf - почти прозрачно заменяет yum в свежих версиях RHEL,Centos
  
 +===== Alpine =====
  
 +Пакет apk-tools предоставляет программу [[https://wiki.alpinelinux.org/wiki/Alpine_Package_Keeper|apk]] со следующими возможностями:
 +<code>
 +add Add new packages or upgrade packages to the running system
 +del Delete packages from the running system
 +fix Repair packages or system
 +update Update the index of available packages
 +info Prints information about installed or available packages
 +search Search for packages or descriptions with wildcard patterns
 +upgrade Upgrade the currently installed packages
 +cache Maintenance operations for locally cached package repository
 +version Compare version differences between installed and available packages
 +index create a repository index from a list of packages
 +fetch download (but not install) packages
 +audit List changes to the file system from pristine package install state
 +verify Verify a package signature
 +dot Create a graphviz graph description for a given package
 +policy Display the repository that updates a given package, plus repositories that also offer the package
 +stats Display statistics, including number of packages installed and available, number of directories and files, etc.
 +manifest Display checksums for files contained in a given package
 +</code> 
 ===== Дебиан, хренебиан - какая разница ===== ===== Дебиан, хренебиан - какая разница =====
 ==== PackageKit ==== ==== PackageKit ====
Строка 105: Строка 157:
 ==== yum/apt ==== ==== yum/apt ====
 В [Open]Suse можно установить apt, в Ubuntu/Debian можно установить yum В [Open]Suse можно установить apt, в Ubuntu/Debian можно установить yum
 +
 +===== Дополнительные репозитории дебиан =====
 +
 +==== Postgresql ====
 +[[https://wiki.postgresql.org/wiki/Apt]]
 +
 +<file>
 +sudo apt install curl ca-certificates
 +sudo install -d /usr/share/postgresql-common/pgdg
 +sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
 +</file>
 +Create /etc/apt/sources.list.d/pgdg.list. The distributions are called codename-pgdg. In the example, replace bookworm with the actual distribution you are using. File contents:
 +
 +<file>
 +deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main
 +</file>
 +
 +(You may determine the codename of your distribution by running lsb_release -c). For a script version of the above file creation, presuming you are using a supported release:
 +
 +<file>
 +sudo sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
 +</file>
 +
 +Finally, update the package lists, and start installing packages:
 +
 +<file>
 +sudo apt update
 +sudo apt install postgresql-15
 +</file>
 +
 +==== Репозитории HP Enterpise ====
 +
 +[[hard:hpe_repository|]]
 +
 +==== Репозитории MySQL ====
 +[[https://dev.mysql.com/downloads/]]
  
 {{tag>linux}} {{tag>linux}}
nix/obnovlenie_po_raznyx_distributivov.1664196489.txt.gz · Последнее изменение: san

Если не указано иное, содержимое этой вики предоставляется на условиях следующей лицензии: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki