Usado para Ubuntu Hardy pero funciona igual con Debian pero ajustando los nombres de la distro y las secciones.
aptitude install debpartial-mirror cp /usr/share/doc/debpartial-mirror/examples/debpartial-mirror.conf /etc Crear en algún directorio un fichero texto con la lista de los paquetes que se quiere que tenga el mirror parcial. No agregar las dependencias, se incluirán automáticamente. Por ejemplo, en /home/informatico/lista.txt agrego: ndiswrapper-common ndiswrapper-utils-1.9 ndisgtk Personalizar /etc/debpartial-mirror.conf con: ;; ;; debpartial-mirror configuration file. ;; [GLOBAL] ;; Show debug information? debug = DEBUG ;; Mirror destination directory mirror_dir = /home/informatico/debpartial-mirror/ ;; Which architectures should I download? architectures = i386 ;; What should I look for, by default? components = main restricted universe multiverse distributions = hardy ;; What should I get? get_suggests = true get_recommends = true get_provides = true get_sources = false get_packages = true ;; Here is our first backend. It mirrors a subset of packages from the ;; Debian official repositories. [hardy] ;; Where do we get the packages from? server = file:/mnt/sda4/System/ubuntu/804 ;; Only get a subset of the packages in this source. filter = subsection:base priority:important ;; And get the source packages as well for this backend. get_sources = false ;; You can use debian-cd tasks to include or exclude a subset of the ;; packages. ;;filter = include-from:/usr/share/debian-cd/tasks/base-sarge exclude-from:/usr/share/debian-cd/tasks/exclude-sarge filter = include-from:/home/informatico/lista -----fin--------------- En mirror_dir = /home/informatico/debpartial-mirror/ quedará el resultado de nuestro mirror parcial En server = file:/mnt/sda4/System/ubuntu/804 está el mirror completo de Ubuntu. Puede usarse http o ftp. En filter = include-from:/home/informatico/lista.txt se encuentra la lista de los paquetes que queremos tener en el mirror partial. Luego podemos hacer en la PC que usará el mirror partial: En sources.list agregar: deb file:/home/informatico/debpartial-mirror/hardy hardy main restricted universe saludos Lesman _______________________________________________ Cancelar suscripción https://listas.softwarelibre.cu/mailman/listinfo/linux-l Buscar en el archivo http://listas.softwarelibre.cu/buscar/linux-l
