Aos que são acostumados com o ‘yum’ do CentOS e o ‘apt-get’ do Ubuntu/Debian/etc, eis o pkg_add no FreeBSD.

Exemplo de instalação de um pacote binário com o pkg_add:

root@proxy:~ # pkg_add -r lynx
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.2-release/Latest/lynx.tbz… Done.

To enable certificate handling for SSL connnections, set
SSL_CERT_DIR and SSL_CERT_FILE in your environment to the
proper values (depending upon which SSL library
/usr/local/bin/lynx uses), as described in:

/usr/local/share/doc/lynx/docs/README.sslcerts

and:

/usr/local/share/doc/lynx/docs/README.rootcerts.

You may also need to generate keys and certificates as
described in the latter document and your SSL documentation.

[divider]root@proxy:~ #[divider]

Listar pacotes instalados:

root@proxy:~ # pkg_info
apache24-2.4.6 Version 2.4.x of Apache web server
apr-1.4.8.1.5.2 Apache Portability Library
aspell-0.60.6.1_2 Spelling checker with better suggestion logic than ispell
autoconf-2.69 Automatically configure source code on many Un*x platforms
autoconf-wrapper-20130530 Wrapper script for GNU autoconf
ca_root_nss-3.15.1 The root certificate bundle from the Mozilla Project
db41-4.1.25_4 The Berkeley DB package, revision 4.1
db42-4.2.52_5 The Berkeley DB package, revision 4.2
dialog4ports-0.1.5_1 Console Interface to configure ports
expat-2.1.0 XML 1.0 parser written in C
gdbm-1.10 GNU database manager
gettext-0.18.3 GNU gettext package
gmake-3.82_1 GNU version of ‘make’ utility
help2man-1.43.3 Automatically generating simple manual pages from program o
libexecinfo-1.1_3 A library for inspecting program’s backtrace
libffi-3.0.13 Foreign Function Interface
libiconv-1.14_1 A character set conversion library
libidn-1.27 Internationalized Domain Names command line tool
libssh2-1.4.3_1,2 Library implementing the SSH2 protocol
libtool-2.4.2 Generic shared library support script
libxml2-2.8.0_2 XML parser library for GNOME
libyaml-0.1.4_2 A YAML 1.1 parser and emitter written in C
lynx-2.8.7.2,1 Non-graphical, text-based World-Wide Web client
m4-1.4.16_1,1 GNU m4
openldap-client-2.4.35 Open source LDAP client implementation
p5-Locale-gettext-1.05_3 Message handling functions
pcre-8.33 Perl Compatible Regular Expressions library
perl-5.14.4 Practical Extraction and Report Language
php53-5.3.27 PHP Scripting Language
php53-mysql-5.3.27 The mysql shared extension for php
php53-session-5.3.27 The session shared extension for php
pico-alpine-2.00_1 [Al]PIne’s message COmposition editor and Pilot file manage
pkgconf-0.9.2_1 Utility to help to configure compiler and linker flags
portupgrade-2.4.11,2 FreeBSD ports/packages administration and management tool s
rtmpdump-2.4_2 A tool to download RTMP streams
ruby-1.9.3.448,1 An object-oriented interpreted scripting language
ruby19-bdb-0.6.6_1 Ruby interface to Oracle Berkeley DB revision 2 or later
ruby19-date2-4.0.19 An alternative date class for Ruby
wget-1.14_2 Retrieve files from the Net via HTTP(S) and FTP
root@proxy:~ #[divider]

Deletando pacotes instalados por meio do pkg_add:

root@proxy:~ # pkg_delete lynx\*

Até mais!

Author

Rodrigo Calado é sócio-fundador e CTO do Gran Cursos Online. Graduado em Gestão da Tecnologia da Informação, pós-graduando em Governança de TI pela Universidade Católica de Brasília e cursou MBA em Gestão e Empreendedorismo pela FGV. Possui convicta paixão pela área de tecnologia, educação digital, concursos públicos e empreendedorismo.

Write A Comment