Creating a simple local Ubuntu repositories

Setup
  1. Install dpkg-dev.

    sudo apt-get install dpkg-dev

  2. Create local repository directory.

    sudo mkdir /path/deb

  3. Create an update script in the local repository directory with these three lines:

    #! /bin/bash
    cd /path/deb
    dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

  4. Make the script executable.

    sudo chmod 755 update_local_repo_script

  5. Add local repository into the Ubuntu software sources. Use the line below:

    deb file:/path/deb ./
    You can either manually edit /etc/apt/sources.list file or you can use the GUI application: System > Administration > Software Sources

Usage
  1. Download deb package files from internet to /path/deb.
  2. Run update script

    sudo /path/deb/update_local_repo_script

  3. Run Ubuntu repositories update

    sudo apt-get update

  4. You can now start installing the downloaded application using either apt-get command or Synaptic Package Manager.

Comments

Popular posts from this blog

City Code Table for Casio SGW300HD-1AV Watch

How to force only 4G or LTE network connection for Samsung Galaxy Note 4

Mounting NFS share directory from D-link DNS 320L on Ubuntu 12.04 LTS