Archive

Posts Tagged ‘packaging’

Debian/Ubuntu: replicar lista de paquetes a otra máquina

October 4, 2013 2 comments

Si alguna vez compraste una nueva máquina y quisiste instalar la lista de programas instalados en tu anterior, sin tener una técnica especial para hacerlo, entenderás porque me interesa mucho esta técnica en Ubuntu para automatizar el proceso…

Primero, en nuestra máquina “antigua”, usamos apt-get para generar una lista de todos los paquetes instalados en un archivo llamado paquetes.txt:

dpkg --get-selections | grep -v deinstall > paquetes.txt

Después, en la nueva máquina, actualizamos la lista de fuentes de paquetes y usamos apt-get para instalar desde nuestro archivo (que podemos copiar por un comando scp o simplemente enviárselo por correo):

apt-get update
dpkg --set-selections < paquetes.txt
apt-get -u dselect-upgrade

Y ya está! Solo hay que dejarlo descargar.

Si, además, quieres recuperar todo lo que tenías de personal en la otra máquina, puedes también copiar tu carpeta home con el siguiente comando desde la nueva máquina:

cd; rsync -avz usuario@maquina-anterior:/home/usuario/ .

Para que funcione sin problema, vale mejor guardar el mismo nombre de usuario que usabas en la máquina anterior. Sino podría generar problemas de permisos.
Se recomienda primero recuperar la carpeta de usuarios y *después* instalar los paquetes. Así, la instalación tomará en cuenta los posibles parámetros importantes al momento de arrancar estas aplicaciones.

HOWTO Install and maintain free software easily under Solaris: pkg-get

July 14, 2008 Leave a comment
This article was first written in August 2004 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/161).

pkg-get is somewhat a rewrite of the apt-get of to Sun’s Solaris.

It is a script that uses wget and the pkg suite [1] of tools from Solaris to install, upgrade, and uninstall free software easily on Solaris.

The list of packages available is already impressive: http://www.blastwave.org/packages.php.

To update the list of available packages on your system:

# pkg-get -U

To download and upgrade the packages already installed:

# pkg-get -u

[1] pkgadd, pkgrm, …

VirtualBox and Ubuntu packages

VirtualBox is a very practical application running under Linux systems, and packaged into Ubuntu 8.04 Hardy Heron, that lets you virtualise an operating system. A bit in the same way as QEmu did it, except that, to make it short, it works better.

Anyway, VirtualBox is highly dependent on the kernel of the base system you’re running it on, so it is linked to the kernel packages in Ubuntu. The only problem is that, when upgrading your kernel with the usual Ubuntu package updates, you don’t get an update for the VirtualBox right away. Instead, you will have to wait for a few days, and possibly a few weeks. The recommendation is thus: do not upgrade your kernel if you

  • really need VirtualBox
  • don’t really need the upgrade
  • don’t know for sure if there is a new VirtualBox package for that kernel

You can always start your system withn older kernel later on (if you didn’t clean the older versions), but then what’s the use of upgrading?

To give you a rough idea, to date, the latest kernel package is linux-image-2.6.24-19-*, and the latest VirtualBox kernel-dependent package is virtualbox-ose-modules-2.6.24-16-*

Debian Packaging Web Applications Policy drafts

November 9, 2004 Leave a comment
This article was first written in November 2004 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/184).

Here are some links about interesting drafts of a Debian Packaging Web Applications Policy.

https://alioth.debian.org/projects/webapps-common/

http://people.debian.org/~seanius/policy/

DB Apps Packaging Policy

PHP Pear Packaging Policy

http://www.opal.dhs.org/involved/debian/apache/index.oml

Webapp Policy Wiki

Categories: English, Tech Crunch Tags: , ,
%d bloggers like this: