Comandos FreeBSD

Pequeño resumen de comandos que me hice, puede ser útil (en inglés):

  • Reinstall package from ports:

# cd /usr/ports/category/port

# make deinstall install clean

  • Why do I not see any users in GDM?

You did not mount the procfs file system. Procfs is not mounted by default in recent releases of FreeBSD. You must add the following line to your /etc/fstab file:

proc           /proc       procfs  rw  0   0

  • How do I uninstall GNOME?

If you have installed x11/gnome2 and you want to remove all Desktop components that do not have other dependent packages, do the following:

# pkg_deinstall -R x11/gnome2

Note: the pkg_deinstall command requires you have ports-mgmt/portupgrade installed.

If you want to force a removal of all Desktop components (this is generally not recommended), do the following:

# pkg_deinstall -Rf x11/gnome2

  • Checking installed packages for vulnerabilities

$ pkg_add -r portaudit

$ portaudit -F -a

  • Upgrading the ports tree with portsnap

1. Create an empty directory /usr/ports if it does not exists.

# mkdir /usr/ports

2. Fetch and download a compressed snapshot of the Ports Collection into /var/db/portsnap (or any other location specified in configuration file). Internet connection needed at this stage) and update the existing snapshot.

# portsnap fetch

3. If you are running Portsnap for the first time (even if a ports tree has already been created or populated, to let Portsnap establish a baseline from which portsnap can determine which parts of the ports tree need to be updated) or /usr/ports hasn’t been populated, extract the snapshot. This replaces the existing files and directories, and establishes Portsnap-maintained ports tree into /usr/ports:

# portsnap extract

This step can be skipped if you’re only updating the ports tree.

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

# portsnap update

Note: For updating of FreeBSD Ports Tree, step 1 and 3 can be combined into single command: portsnap fetch update (not supported in older version of Portsnap).

  • Upgrading installed ports

To upgrade ports that are already installed on your server, install portupgrade then type:

# /usr/local/sbin/pkgdb -F

which will compile a database of currently installed ports, then

# /usr/local/sbin/portupgrade -acP

which will upgrade any ports which have newer versions available.

Anuncios

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

A %d blogueros les gusta esto: