A
A
anton13ms2020-07-31 10:08:39
FreeBSD
anton13ms, 2020-07-31 10:08:39

How to install programs on FreeBSD?

Something I can not figure out with the installation of programs in the FreeBSD OS.

After entering the command: pkg update such an issue

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'.

At the same time, network access seems to be:
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

What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Chernykh, 2020-07-31
@sashkets

the most correct installation of programs from ports ( https://rtfm.co.ua/freebsd-ustanovka-portov/ )
you can first install portupgrade, and then use it to install what you need

K
Konstantin, 2020-08-04
@nextuser

Good afternoon!
There are two ways to install applications.
1. Install from ports. (these are the source codes of the programs to install, they must be collected)
2. Install from packages. (these are ready-made program installers)
ZY . If pkg does not work for you, look for it in /usr/sbin/pkg or
install it from /usr/ports/ports-mgmt/pkg using the make install clean command
If there are no ports on the machine and the Internet is limited, you can download them to a USB flash drive and install .
We install from packages, packages can be updated with pkg upgrade:
1. We are looking for what we want to install.
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
Next, choose what to install.
pkg install what you need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question