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

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


nix:obnovlenie_po_raznyx_distributivov

Различия

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

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

Предыдущая версия справа и слеваПредыдущая версия
Следующая версия
Предыдущая версия
nix:obnovlenie_po_raznyx_distributivov [2023/10/03 10:52] – [Решение проблем] sannix:obnovlenie_po_raznyx_distributivov [2025/08/12 09:58] (текущий) – [Alpine] san
Строка 83: Строка 83:
 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 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>
 +Определить к какому установленому пакету принадлежит файл 
 +<file> 
 +dpkg-query -S путь/к/файлу 
 +</file> 
 +Вывести список файлов в установленном пакете 
 +<file> 
 +dpkg -L package_name 
 +</file>
 ==== Решение проблем ==== ==== Решение проблем ====
  
Строка 100: Строка 107:
 cp /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d cp /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d
 </file> </file>
 +См. также [[https://devicetests.com/solving-apt-key-deprecated-warning]]
  
 ===== RHEL,Centos ===== ===== RHEL,Centos =====
Строка 115: Строка 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 ====
Строка 128: Строка 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.1696319542.txt.gz · Последнее изменение: san

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