This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
управление_по_в_linux [2022/05/26 11:01] val [Какие пакеты можно/нужно обновить] |
управление_по_в_linux [2025/10/24 06:21] (current) val [Использование менеджера пакетов YUM] |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| * [[Выбор дистрибутива Linux]] | * [[Выбор дистрибутива Linux]] | ||
| + | * [[https://wiki.alpinelinux.org/wiki/Comparison_with_other_distros|Comparison distros]] | ||
| ===== DPKG ===== | ===== DPKG ===== | ||
| * [[https://ru.wikipedia.org/wiki/Dpkg|Dpkg - Википедия]] | * [[https://ru.wikipedia.org/wiki/Dpkg|Dpkg - Википедия]] | ||
| + | * [[https://packages.ubuntu.com/search?keywords=asterisk]] | ||
| <code> | <code> | ||
| Line 17: | Line 19: | ||
| * [[Сервис OpenFire#Установка]] сервиса OpenFire (!!! требует JRE) | * [[Сервис OpenFire#Установка]] сервиса OpenFire (!!! требует JRE) | ||
| + | <code> | ||
| + | # dpkg-deb -I gitlab-runner_amd64.deb | ||
| + | ... | ||
| + | Version: NN.N.N-N | ||
| + | ... | ||
| + | |||
| + | # dpkg-deb -i gitlab-runner_amd64.deb | ||
| + | </code> | ||
| ==== Установленные пакеты ==== | ==== Установленные пакеты ==== | ||
| <code> | <code> | ||
| Line 55: | Line 65: | ||
| </code> | </code> | ||
| ==== Настройка репозитория ==== | ==== Настройка репозитория ==== | ||
| - | |||
| - | === Debian 10 === | ||
| * [[https://www.debian.org/mirror/list|Мировые серверы-зеркала Debian]] | * [[https://www.debian.org/mirror/list|Мировые серверы-зеркала Debian]] | ||
| + | * [[https://wiki.debian.org/SourcesList#Component]] **main contrib non-free non-free-firmware** | ||
| <code> | <code> | ||
| - | # cat /etc/apt/sources.list | + | # apt install netselect-apt |
| - | </code><code> | + | # cd /etc/apt/; netselect-apt |
| - | #deb http://deb.debian.org/debian/ buster main contrib non-free | + | |
| - | #deb http://deb.debian.org/debian buster-updates main contrib non-free | + | |
| - | deb http://ftp.ru.debian.org/debian/ buster main contrib non-free | + | или |
| - | deb http://ftp.ru.debian.org/debian/ buster-updates main contrib non-free | + | |
| - | deb http://security.debian.org/ buster/updates main contrib non-free | + | # less /etc/apt/sources.list |
| + | # sed -i -e 's/deb.debian.org/mirror.docker.ru/g' /etc/apt/sources.list | ||
| - | #deb-src http://deb.debian.org/debian buster main contrib non-free | + | # apt update |
| - | #deb-src http://deb.debian.org/debian buster-updates main contrib non-free | + | |
| - | #deb-src http://security.debian.org/ buster/updates main contrib non-free | + | |
| </code> | </code> | ||
| Line 80: | Line 85: | ||
| * [[https://docs.microsoft.com/ru-ru/sql/linux/sql-server-linux-setup-ubuntu|Install SQL Server on Ubuntu]] | * [[https://docs.microsoft.com/ru-ru/sql/linux/sql-server-linux-setup-ubuntu|Install SQL Server on Ubuntu]] | ||
| + | * [[https://vk.com/wall-95686747_13620|Для установки Elasticsearch и остальных продуктов Elastic, можно использовать репозиторий https://mirror.yandex.ru/mirrors.]] | ||
| + | <code> | ||
| + | # cat /etc/apt/sources.list | ||
| + | ... | ||
| + | deb [trusted=yes] https://mirror.yandex.ru/mirrors/elastic/8/ stable main | ||
| + | ... | ||
| + | </code> | ||
| ==== Обновление списка доступных пакетов ==== | ==== Обновление списка доступных пакетов ==== | ||
| <code> | <code> | ||
| Line 123: | Line 134: | ||
| <code> | <code> | ||
| + | # tail -f /var/log/unattended-upgrades/unattended-upgrades-dpkg.log | ||
| + | |||
| # apt purge unattended-upgrades | # apt purge unattended-upgrades | ||
| </code> | </code> | ||
| Line 152: | Line 165: | ||
| ==== Поиск пакета (в том числе среди неустановленных) в который входит файл ==== | ==== Поиск пакета (в том числе среди неустановленных) в который входит файл ==== | ||
| <code> | <code> | ||
| + | # apt install apt-file | ||
| + | |||
| # apt-file update | # apt-file update | ||
| # apt-file search stddef.h | # apt-file search stddef.h | ||
| + | |||
| + | # apt-file search identify | grep '/bin' | ||
| + | </code> | ||
| + | |||
| + | ==== Удаление архива установленных пакетов ==== | ||
| + | <code> | ||
| + | # apt clean | ||
| </code> | </code> | ||
| Line 161: | Line 183: | ||
| * [[https://stackoverflow.com/questions/16919114/run-sudo-apt-get-install-without-internet-connection|Run sudo apt-get install without internet connection]] | * [[https://stackoverflow.com/questions/16919114/run-sudo-apt-get-install-without-internet-connection|Run sudo apt-get install without internet connection]] | ||
| - | <code> | + | * [[#Удаление архива установленных пакетов]] |
| - | # apt clean | + | |
| + | <code> | ||
| # apt install -d zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent | # apt install -d zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent | ||
| Line 201: | Line 223: | ||
| ==== Настройка на использование http_proxy ==== | ==== Настройка на использование http_proxy ==== | ||
| - | <code> | ||
| - | # export http_proxy="http://gate.isp.un:3128/" | ||
| - | в будущем, может понадобиться | + | * [[Переменные окружения]] |
| - | # export https_proxy="http://gate.isp.un:3128/" | + | |
| - | </code> | + | |
| ===== RPM ===== | ===== RPM ===== | ||
| Line 242: | Line 260: | ||
| # rpm -q -l -p openfire-4.3.2-1.x86_64.rpm | # rpm -q -l -p openfire-4.3.2-1.x86_64.rpm | ||
| </code> | </code> | ||
| + | ==== Использование менеджера пакетов DNF ==== | ||
| + | |||
| + | === Обновление всех пакетов === | ||
| + | <code> | ||
| + | # dnf check-update | ||
| + | |||
| + | # dnf update -y | ||
| + | </code> | ||
| + | |||
| ==== Использование менеджера пакетов YUM ==== | ==== Использование менеджера пакетов YUM ==== | ||
| Line 298: | Line 325: | ||
| # yum grouplist | # yum grouplist | ||
| - | # yum -y groups install "GNOME Desktop" | + | centos# yum -y groups install "GNOME Desktop" |
| + | almalinux# yum groupinstall "Server with GUI" | ||
| + | |||
| + | almalinux# systemctl set-default graphical && reboot | ||
| + | </code> | ||
| + | |||
| + | ===== APK Alpine Linux ===== | ||
| + | <code> | ||
| + | # apk update | ||
| + | |||
| + | # apk search git | ||
| + | |||
| + | # apk add --no-cache git | ||
| + | |||
| + | # rm -rf /var/cache/apk/* | ||
| </code> | </code> | ||
| Line 354: | Line 395: | ||
| * [[https://tutorials.ubuntu.com/tutorial/basic-snap-usage|Basic snap usage]] | * [[https://tutorials.ubuntu.com/tutorial/basic-snap-usage|Basic snap usage]] | ||
| * [[https://askubuntu.com/questions/979233/how-to-list-files-installed-by-a-snap-package|How to list files installed by a snap package?]] | * [[https://askubuntu.com/questions/979233/how-to-list-files-installed-by-a-snap-package|How to list files installed by a snap package?]] | ||
| + | * [[https://snapcraft.io/docs/installing-snap-on-debian|Installing snap on Debian]] | ||
| + | * [[Инструмент Gitea]] | ||
| <code> | <code> | ||
| + | debian# apt install snapd | ||
| + | |||
| # snap refresh | # snap refresh | ||
| Line 378: | Line 423: | ||
| * [[Сервис TACACS+]] | * [[Сервис TACACS+]] | ||
| * [[Сервис Grafana]] | * [[Сервис Grafana]] | ||
| + | |||
| + | ===== Список desktop приложений ===== | ||
| + | |||
| + | * [[https://unix.stackexchange.com/questions/20979/how-do-i-list-all-installed-programs]] | ||
| + | |||
| + | <code> | ||
| + | $ ls /usr/share/applications | awk -F '.desktop' ' { print $1}' - | ||
| + | </code> | ||
| ===== Работа с исходными текстами ===== | ===== Работа с исходными текстами ===== | ||