WarDrome Sci-fi MMORPG
WarDrome Sci-fi MMORPG

Installare MacPorts


Gli utenti debian conoscono bene la comodità di apt-get o aptitude, per recuperare software e dipendenze varie, fare upgrade rapidamente etc.
MacPorts è il corrispondente apple-darwiniano di apt-get ed è altrettanto utile.

Per prima cosa controllate di avere già installati sul sistema:

  • Apple’s Xcode Developer Tools (versione 3.2.1+ per Snow Leopard, 3.1.4+per Leopard, o 2.5 per Tiger), li trovate su Apple Developer Connection oppure nel DVD di Mac OS X e assicuratevi che sia installata la parte (“Unix Development” nell’installer di Xcode).
  • Il client X11 (in Tiger è opzionale e lo trovate nel DVD del sistema operativo, nei successivi c’è già)

Per installare MacPorts andate sul sito: MacPorts, e fate il download della immagine disco relativa al vostro sistema operativo, apritela e lanciate il programma di installazione. Una volta finito aprite una finestra di terminale e digitate il seguente comando:

sudo port -d selfupdate

inserite la password di amministrazione, attendete qualche secondo e avrete darwin ports attivo e funzionante.

Per conoscere la sintassi del comando port, digitate:

port help
port
        [-bcdfknopqRstuvy] [-D portdir] [-F cmdfile] action [privopts] [actionflags]
        [[portname|pseudo-portname|port-url] [@version] [+-variant]... [option=value]...]...
 
Supported commands
------------------
activate, archive, build, cat, cd, checksum, clean, configure, contents,
deactivate, dependents, deps, destroot, dir, distcheck, distfiles, dmg,
dpkg, echo, ed, edit, exit, extract, fetch, file, gohome, help, info,
install, installed, lint, list, livecheck, load, location, mdmg, mirror,
mpkg, notes, outdated, patch, pkg, platform, portpkg, provides, quit,
rpm, search, select, selfupdate, srpm, submit, sync, test, trace, unarchive,
uninstall, unload, upgrade, url, usage, variants, version, work
Pseudo-portnames
----------------
Pseudo-portnames are words that may be used in place of a portname, and
which expand to some set of ports. The common pseudo-portnames are:
all, current, active, inactive, installed, uninstalled, outdated and obsolete.
These pseudo-portnames expand to the set of ports named.
 
Additional pseudo-portnames start with...
variants:, variant:, description:, depends:, depends_lib:, depends_run:,
depends_build:, depends_fetch:, depends_extract:, portdir:, homepage:, epoch:,
platforms:, platform:, name:, long_description:, maintainers:, maintainer:,
categories:, category:, version:, and revision:.
These each select a set of ports based on a regex search of metadata
about the ports. In all such cases, a standard regex pattern following
the colon will be used to select the set of ports to which the
pseudo-portname expands.
 
Portnames that contain standard glob characters will be expanded to the
set of ports matching the glob pattern.
 
Port expressions
----------------
Portnames, port glob patterns, and pseudo-portnames may be logically
combined using expressions consisting of and, or, not, !, (, and ).
 
For more information
--------------------
See man pages: port(1), macports.conf(5), portfile(7), portgroup(7),
porthier(7), portstyle(7). Also, see http://www.macports.org.

Se qualcosa non vi è chiaro andate sulla pagina relativa di man.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Reddit
  • StumbleUpon
  • Technorati
  • Twitter
  • Yahoo! Bookmarks

Leave a comment

Your comment

Connect with Facebook