How to make local repository for your Ubuntu on usb flash disk
Here’s the steps:
- Install dpkg-dev by $ sudo apt-get install dpkg-dev.
- plug in the usb flash disk and mount it to /media/disk (usually it’s automatically detected)
- Ciot /var/cache/apt/archieves that have .deb extension to usb flash disk by executing cd ke /var/cache/apt/archives and then sudo cp *.deb /media/disk
- Execute $ sudo dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
Now your usb flash disk can be used as repository source on synaptic.
Tags: synaptic, ubuntu flash disk, linux flash disk