This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
управление_по_в_linux [2021/09/16 10:40] val [Создание локального репозитория APT] |
управление_по_в_linux [2025/01/02 06:34] (current) val [Установка пакета] |
||
---|---|---|---|
Line 8: | Line 8: | ||
* [[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 18: | ||
* [[Сервис 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 64: | ||
</code> | </code> | ||
==== Настройка репозитория ==== | ==== Настройка репозитория ==== | ||
- | |||
- | === Debian 10 === | ||
* [[https://www.debian.org/mirror/list|Мировые серверы-зеркала Debian]] | * [[https://www.debian.org/mirror/list|Мировые серверы-зеркала Debian]] | ||
<code> | <code> | ||
- | # cat /etc/apt/sources.list | + | # apt install netselect-apt |
- | </code><code> | + | |
- | #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 | + | # netselect-apt |
- | 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 |
- | #deb-src http://deb.debian.org/debian buster main contrib non-free | + | # sed -i -e 's/deb.debian.org/mirror.docker.ru/g' /etc/apt/sources.list |
- | #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 | + | # apt update |
</code> | </code> | ||
Line 80: | Line 83: | ||
* [[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 118: | Line 127: | ||
<code> | <code> | ||
# apt purge snort | # apt purge snort | ||
+ | </code> | ||
+ | |||
+ | ==== Отключение автоматических обновлений ==== | ||
+ | |||
+ | <code> | ||
+ | # apt purge unattended-upgrades | ||
</code> | </code> | ||
Line 146: | Line 161: | ||
==== Поиск пакета (в том числе среди неустановленных) в который входит файл ==== | ==== Поиск пакета (в том числе среди неустановленных) в который входит файл ==== | ||
<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 154: | Line 178: | ||
* [[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> | <code> | ||
- | # apt clean | ||
- | |||
# 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 195: | Line 219: | ||
==== Настройка на использование 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 292: | Line 312: | ||
# 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> | </code> | ||
Line 348: | Line 371: | ||
* [[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 367: | Line 394: | ||
</code> | </code> | ||
+ | ===== Docker ===== | ||
+ | |||
+ | * [[Технология Docker]] | ||
+ | * [[Сервис TACACS+]] | ||
+ | * [[Сервис 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> | ||
===== Работа с исходными текстами ===== | ===== Работа с исходными текстами ===== | ||