@anton13ms

Как устнанавливать программы на FreeBSD?

Что то не могу разобраться с установкой программ в ОС FreeBSD.
После ввода команды: pkg update такая выдача

The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly, please wait...
pkg: Error fetching pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly/Latest/...: Forbidden
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.

При этом доступ по сети вроде есть:
host google.com
google.com has address 173.194.222.113
google.com has address 173.194.222.102
google.com has address 173.194.222.139
google.com has address 173.194.222.101
google.com has address 173.194.222.138
google.com has address 173.194.222.100
google.com has IPv6 address 2a00:1450:4010:c0b::66
google.com has IPv6 address 2a00:1450:4010:c0b::65
google.com has IPv6 address 2a00:1450:4010:c0b::71
google.com mail is handled by 30 alt2.aspmx.l.google.com.
google.com mail is handled by 20 alt1.aspmx.l.google.com.
google.com mail is handled by 50 alt4.aspmx.l.google.com.
google.com mail is handled by 10 aspmx.l.google.com.
google.com mail is handled by 40 alt3.aspmx.l.google.com.

host pkg.freebsd.org
pkg.freebsd.org is an alias for pkgmir.geo.freebsd.org.
pkgmir.geo.freebsd.org has address 139.178.72.201
pkgmir.geo.freebsd.org has IPv6 address 2604:1380:2000:9501::50:2

В чем может быть проблема?
  • Вопрос задан
  • 3275 просмотров
Пригласить эксперта
Ответы на вопрос 2
sashkets
@sashkets
Прекратил отвечать после 24.02.2022
самая правильная установка программ из портов (https://rtfm.co.ua/freebsd-ustanovka-portov/)
сначала можно установить portupgrade, а потом с его помощью устанавливать, что нужно
Ответ написан
@nextuser
инженер
Добрый день!
Установить приложения можно двумя способами.
1. Установить из портов. (это исходники программ, чтобы поставить, их надо собрать)
2. Установить из пакетов. (это готовые установщики программ)

З.Ы. Если у вас не работает pkg, поищите его в /usr/sbin/pkg или
установить из портов /usr/ports/ports-mgmt/pkg командой make install clean
Если портов на машине нет и интернет ограничен, можно их скачать на флешку и установить.

Ставим из пакетов, пакеты можно обновить pkg upgrade:
1. Ищем, что хотим поставить.
pkg search zabbix

py27-pyzabbix-0.7.5 Zabbix API Python Library
py37-pyzabbix-0.7.5 Zabbix API Python Library
zabbix3-agent-3.0.31 Enterprise-class open source distributed monitoring (agent) LTS
zabbix3-frontend-3.0.31 Enterprise-class open source distributed monitoring (frontend) LTS
zabbix3-java-3.0.31_1 Enterprise-class open source distributed monitoring (java) LTS
zabbix3-libzbxpgsql-1.1.0_3 Zabbix agent module for comprehensive monitoring of PostgreSQL servers
zabbix3-proxy-3.0.31 Enterprise-class open source distributed monitoring (proxy) LTS
zabbix3-server-3.0.31 Enterprise-class open source distributed monitoring (server) LTS
zabbix4-agent-4.0.22 Enterprise-class open source distributed monitoring (agent) LTS
zabbix4-frontend-4.0.22 Enterprise-class open source distributed monitoring (frontend) LTS
zabbix4-java-4.0.22 Enterprise-class open source distributed monitoring (java) LTS
zabbix4-proxy-4.0.22 Enterprise-class open source distributed monitoring (proxy) LTS
zabbix4-server-4.0.22 Enterprise-class open source distributed monitoring (server) LTS
zabbix44-agent-4.4.9_1 Enterprise-class open source distributed monitoring (agent)
zabbix44-frontend-4.4.9_1 Enterprise-class open source distributed monitoring (frontend)
zabbix44-java-4.4.9_2 Enterprise-class open source distributed monitoring (java)
zabbix44-proxy-4.4.9_1 Enterprise-class open source distributed monitoring (proxy)
zabbix44-server-4.4.9_1 Enterprise-class open source distributed monitoring (server)
zabbix5-agent-5.0.2 Enterprise-class open source distributed monitoring (agent) LTS
zabbix5-frontend-5.0.2 Enterprise-class open source distributed monitoring (frontend) LTS
zabbix5-java-5.0.2 Enterprise-class open source distributed monitoring (java) LTS
zabbix5-proxy-5.0.2 Enterprise-class open source distributed monitoring (proxy) LTS
zabbix5-server-5.0.2 Enterprise-class open source distributed monitoring (server) LTS

Далее выбираем что ставить.
pkg install что нужно
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы