How to make local repository for your Ubuntu on usb flash disk

Here’s the steps:

  1. Install dpkg-dev by $ sudo apt-get install dpkg-dev.
  2. plug in the usb flash disk and mount it to /media/disk (usually it’s automatically detected)
  3. 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
  4. Execute $ sudo dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

Now your usb flash disk can be used as repository source on synaptic.

Tags: , ,

Google
 

Leave a Reply

72 views