DEV.MD / Developer Network
Search:     Advanced search
Browse by category:
Glossary | Contact Us

Updating the Ports Collection on FreeBSD

Add comment
Views: 1647
Votes: 1
Comments: 0
Posted: 07 Nov, 2007
by: Admin K.
Updated: 25 Nov, 2009
by: Zavadschi S.
Metoda CVSup

1. Instalează pachetul net/cvsup-without-gui:


# pkg_add -r cvsup-without-gui
Notă: în cazul când locaţia FTP nu mai este disponibilă sau a fost mutată în altă parte, se poate de specificat din linia de comandă de unde pkg_add poate lua package-ul
pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages/Latest/cvsup-without-gui.tbz


2. Lansează cvsup

Schimbă cvsup.FreeBSD.org cu un CVSup server mai aproapiat. Vezi lista completă de CVSup Mirrors.

# cvsup -L 2 -h cvsup.FreeBSD.org /usr/share/examples/cvsup/ports-supfile

3. Reînoieşte index-ul la porturi:

# cd /usr/ports
# make fetchindex

Metoda Portsnap

Portsnap este o alternativă pentru sistemul de distribuire a Colectiei de Porturi. Pentru prima data a fost inclus in FreeBSD 6.0. În sisteme mai vechi, el poate fi instalat din ports-mgmt/portsnap:

# pkg_add -r portsnap

Foloseşte ca referinţă Using Portsnap pentru a vedea detalii asupra posibilităţilor Portsnap.

  1. Since FreeBSD 6.1-RELEASE and with recent versions of the Portsnap port or package, you can safely skip this step. The /usr/ports will be created automatically at first use of the portsnap(8) command. With previous versions of Portsnap, you will have to create an empty directory /usr/ports if it does not exists:

    # mkdir /usr/ports
  2. Download a compressed snapshot of the Ports Collection into /var/db/portsnap. You can disconnect from the Internet after this step, if you wish.

    # portsnap fetch
  3. If you are running Portsnap for the first time, extract the snapshot into /usr/ports:

    # portsnap extract

    If you already have a populated /usr/ports and you are just updating, run the following command instead:

    # portsnap update
Notă:
#setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-7-stable/All/
Referinţă:
www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html
Others in this Category
document Mount ISO image in FreeBSD
document CVsup sources
document IPFW - Configuring Firewalls
document Operating with aliases on Ethernet interfaces
document FreeBSD Apache HTTP Accept Filter Error
document Identify PCI Devices in FreeBSD
document How to change a MAC address in FreeBSD
document Remove all installed packages and ports on FreeBSD
document Installation and Configuration of Nginx FastCGI PHP
document How can I tell how much RAM is installed on a FreeBSD box?



RSS