|
weblog gatopelao
Wed, 07 Oct 2009
Crear tu propio .deb repository
# apt-get install reprepro apache2
# mkdir -p /var/www/repository/conf
Primero crea una clave.
# gpg --gen-key
y apunta la clave. ej. ABABABAB
Exportar la clave para que los clientes puedan importarlo.
# gpg --export -a 0xABABABAB > /var/www/repository/mykey.asc
Los clientes harán
# wget http://tu_server/mykey.asc # apt-key add mykey.asc
# apt-get update
Continuamos..
# vim /var/www/repository/conf/distributions
Origin: yo
Label: gatopelao
Codename: etch
Version: 4.0
Architectures: i386 amd64
Components: main
Description: Repository for things
SignWith: ABABABAB
Configurar Apache
# vim /etc/apache2/sites-enabled/000-default
<VirtualHost *>
DocumentRoot /var/www/repository/
ServerName <nombre_de_tu_servidor>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
<Directory "/var/www/repository">
Options Indexes FollowSymLinks MultiViews
DirectoryIndex index.html
AllowOverride Options
Order allow,deny
allow from all
</Directory>
# Hide the conf/ directory for all repositories
<Directory "/var/www/repository/conf">
Order deny,allow
Deny from all
#Satisfy all
</Directory>
# Hide the db/ directory for all repositories
<Directory "/var/www/repository/db">
Order deny,allow
Deny from all
#Satisfy all
</Directory>
</VirtualHost>
Importar paquetes
# cd /var/www/repository
# reprepro -Vb . includedeb etch /path/to/my_package.deb
Remove paquetes
# cd /var/www/repository
# reprepro -b . remove etch package_name
[/debian]
permanent link
|