gist.githate.ru

Explore

  • All gists
  • Topics
  • Users
Telegram Git collection
Give feedback on the new UI Powered by Opengist ⋅ 15ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
a

apt

Recently created Least recently created Recently updated Least recently updated
LittleGreenCat

LittleGreenCat / Proxy only for apt, not for the whole system

Last active 2 months ago apt

Прокси только для apt, но не для системы в целом

0 0 1
cat <<EOF | sudo tee /etc/apt/apt.conf.d/90curtin-aptproxy
Acquire::http::Proxy "http://10.20.30.40:3128";
Acquire::https::Proxy "http://10.20.30.40:3128";
EOF

Альтернативный способ, чтобы не прописывать прокси в систему (мы же за безопасность) можно ее прям команде скормить, например:

http_proxy=http://10.20.30.40:3128  https_proxy=http://10.20.30.40:3128  HTTP_PROXY=http://10.20.30.40:3128  HTTPS_PROXY=http://10.20.30.40:3128 apt update
LittleGreenCat

LittleGreenCat / Disallow apt package update

Last active 2 months ago apt

Как заблокировать пакеты для обновления и все таки обновить их потом при необходимости (для apt дистрибутивов)

0 0 1
1 # После установки защитите версии пакетов от обновления.
2
3 apt-mark hold <PACKAGENAME>
4
5 # При обновлении можно принудительно разрешить
6
7 apt-get install -y --allow-change-held-packages <PACKAGENAME>