Mudanças entre as edições de "Apt-local"

De MochilaWiki
Ir para navegaçãoIr para pesquisar
 
Linha 4: Linha 4:
 
  cd /home/pacotes
 
  cd /home/pacotes
 
  for foo in *; do mv $foo `echo $foo | tr /%/ /-` ; done
 
  for foo in *; do mv $foo `echo $foo | tr /%/ /-` ; done
  dpkg -i libsqlite3-0_3.3.8-1.1_i386.deb libpq4_8.1.11-0etch1_i386.deb libaprutil1_1.2.7+dfsg-2_i386.deb libapr1_1.2.7-8.2_i386.deb   apache2-utils_2.2.3-4+etch3_i386.deb apache2.2-common_2.2.3-4+etch3_i386.deb apache2-mpm-prefork_2.2.3-4+etch3_i386.deb apache2_2.2.3-4+etch3_all.deb
+
  dpkg -i libsqlite3-0_3.3.8-1.1_i386.deb libpq4_8.1.11-0etch1_i386.deb libaprutil1_1.2.7+dfsg-2_i386.deb libapr1_1.2.7-8.2_i386.deb /
 +
apache2-utils_2.2.3-4+etch3_i386.deb apache2.2-common_2.2.3-4+etch3_i386.deb apache2-mpm-prefork_2.2.3-4+etch3_i386.deb apache2_2.2.3-4+etch3_all.deb
 
  cd ..
 
  cd ..
 
  touch arquivo
 
  touch arquivo

Edição das 16h55min de 18 de fevereiro de 2008

apt-get install apache2
mkdir /home/pacotes
cp /var/cache/apt/archives/*.deb /home/pacotes
cd /home/pacotes
for foo in *; do mv $foo `echo $foo | tr /%/ /-` ; done
dpkg -i libsqlite3-0_3.3.8-1.1_i386.deb libpq4_8.1.11-0etch1_i386.deb libaprutil1_1.2.7+dfsg-2_i386.deb libapr1_1.2.7-8.2_i386.deb /
apache2-utils_2.2.3-4+etch3_i386.deb apache2.2-common_2.2.3-4+etch3_i386.deb apache2-mpm-prefork_2.2.3-4+etch3_i386.deb apache2_2.2.3-4+etch3_all.deb
cd ..
touch arquivo
dpkg-scanpackages pacote arquivo | gzip > pacote/Packages.gz
ln -s /home/pacotes/ /var/www
echo "deb http://localhost pacotes/" >> /etc/apt/sources.list
apt-get update