Страница 1 из 1

зависимости пакетов

Добавлено: 2014-03-08 12:47:47
Nikko
привет всем...
как узнать во FreeBSD,зависимости пакетов при установке???и версия продукта приложения???
спасибо заранее.

Re: зависимости пакетов

Добавлено: 2014-03-08 12:51:55
Electronik

Re: зависимости пакетов

Добавлено: 2014-03-08 12:55:51
Nikko
а в командной строке?

Re: зависимости пакетов

Добавлено: 2014-03-08 13:30:24
Electronik

Код: Выделить всё

cd /usr/ports
make search name=ИМЯ ПОРТА
или

Код: Выделить всё

ee Makefile
и вчитываемся.

Re: зависимости пакетов

Добавлено: 2014-03-08 13:33:08
guest
Nikko писал(а):а в командной строке?
# pkg search -R name ?

Re: зависимости пакетов

Добавлено: 2014-03-08 21:44:54
SiAl
Если работать с пакетами:

Код: Выделить всё

pkg search -s openvpn		# Поиск необходимого пакета
	openvpn-2.3.2                  1.01MiB
pkg search -f openvpn-2.3.2		# Просмотр информации по пакету
	openvpn-2.3.2
	Name           : openvpn
	Version        : 2.3.2
	Installed on   : Thu Jan  1 03:00:00 MSK 1970
	Origin         : security/openvpn
	Architecture   : freebsd:10:x86:64
	Prefix         : /usr/local
	Categories     : security net
	Licenses       : GPLv2
	Maintainer     : mandree@FreeBSD.org
	WWW            : http://openvpn.net/index.php/open-source.html
	Comment        : Secure IP/Ethernet tunnel daemon
	Options        :
		EASYRSA        : on
		OPENSSL        : on
		PKCS11         : off
		POLARSSL       : off
		PW_SAVE        : off
	Shared Libs required:
		liblzo2.so.2
	Shared Libs provided:
		openvpn-plugin-down-root.so
		openvpn-plugin-auth-pam.so
	Flat size      : 1.01MiB
	Pkg size       : 377 KB
	Description    :
	OpenVPN is a robust, scalable and highly configurable VPN (Virtual Private
	Network) daemon which can be used to securely link two or more private networks
	using an encrypted tunnel over the internet. It can operate over UDP or TCP,
	can use SSL or a pre-shared secret to authenticate peers, and in SSL mode, one
	server can handle many clients.

	WWW: http://openvpn.net/index.php/open-source.html

pkg install -n openvpn-2.3.2			# Просмотр зависимостей
	Installing easy-rsa: 2.2.0.m
	Installing lzo2: 2.06_1
	Installing openvpn: 2.3.2
pkg search -Q options easy-rsa-2.2.0.m	# Просмотр опций зависимых пакетов
pkg search -Q options lzo2-2.06_1		# Просмотр опций зависимых пакетов
pkg install -y openvpn-2.3.2			# Установка пакета и всех зависимостей
	### ------------------------------------------------------------------------
	###  Edit /etc/rc.conf[.local] to start OpenVPN automatically at system
	###  startup. See /usr/local/etc/rc.d/openvpn for details.
	### ------------------------------------------------------------------------
	###  For compatibility notes when interoperating with older OpenVPN
	###  versions, please, see <http://openvpn.net/relnotes.html>
	### ------------------------------------------------------------------------
pkg info -l openvpn-2.3.2			# Просмотр файлов установленных пакетом
Если работать с портами:

Код: Выделить всё

#cd /usr/ports && make quicksearch name=openvpn	# Поиск openvpn сервера в портах
	Port:   openvpn-2.3.2
	Path:   /usr/ports/security/openvpn
	Info:   Secure IP/Ethernet tunnel daemon
#cd /usr/ports/security/openvpn
#   make showconfig 				# показать текущие опции сборки порта
	===> The following configuration options are available for openvpn-2.3.2:
	     EASYRSA=on: Install security/easy-rsa RSA helper package
	     PKCS11=off: Use security/pkcs11-helper
	     PW_SAVE=off: Interactive passwords may be read from a file
	====> SSL protocol support: you have to select exactly one of them
	     OPENSSL=on: SSL/TLS support via OpenSSL
	     POLARSSL=off: SSL/TLS support via PolarSSL
	===> Use 'make config' to modify these settings
#   make all-depends-list			# Посмотр какие пакеты нужно установить для устанавливаемого пакета
	/usr/ports/ports-mgmt/pkg
	/usr/ports/archivers/lzo2
	/usr/ports/security/easy-rsa
	/usr/ports/devel/libtool
#   make showconfig-recursive		# показать настройки для текущего порта и всех зависимостей
	===> The following configuration options are available for openvpn-2.3.2 and dependencies
	===> The following configuration options are available for openvpn-2.3.2:
	     EASYRSA=on: Install security/easy-rsa RSA helper package
	     PKCS11=off: Use security/pkcs11-helper
	     PW_SAVE=off: Interactive passwords may be read from a file
	====> SSL protocol support: you have to select exactly one of them
	     OPENSSL=on: SSL/TLS support via OpenSSL
	     POLARSSL=off: SSL/TLS support via PolarSSL
	===> Use 'make config' to modify these settings
#   make config install clean		# Сконфигурировать и установить openvpn и все зависимости

Re: зависимости пакетов

Добавлено: 2014-03-09 15:53:41
Nikko
все спс понял :drinks:

Re: зависимости пакетов

Добавлено: 2014-03-11 13:47:18
Alvares
В портах еще:

Код: Выделить всё

cd /usr/ports/misc/mc && make missing
-то каких пакетов в системе не хватает.