Important information
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-18.1 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.3.1 release info here

New users[/u
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Easy way to set up an apt repository in a folder

Just as the name says, here is where you can post tips and tricks to share with other users of MEPIS.
Post Reply
User avatar
Forum Veteran
Forum Veteran
Posts: 18013
Joined: Fri Dec 15, 2006 8:07 pm

Easy way to set up an apt repository in a folder


Post by Stevo » Tue Oct 02, 2018 5:05 pm

Our Repo Team can use this if the package can't be built in pbuilder with its local repo feature, and it needs extra backports first. I'm sure it can also be useful for other use cases. The functionality is provided by the local-apt-repository package, currently only in the Stretch repo, but I'll see if it can be backported for MX 15.

The local folder must be /srv/local-apt-repository

Code: Select all

sudo apt-get install local-apt-repository
Create the local folder as necessary:

Code: Select all

sudo mkdir -p /srv/local-apt-repository
Copy all the debs in a folder to that repo folder:

Code: Select all

sudo cp *.deb /srv/local-apt-repository
Since we don't run systemd on MX by default, run an extra command to rebuild the repo after changing contents:

Code: Select all

sudo /usr/lib/local-apt-repository/rebuild
Update the apt database:

Code: Select all

sudo apt-get update
or use the tray widget.

The new packages should now appear in the apt system--if they are upgrades to installed packages, the MX updater-notifier will show them as upgrades.

Post Reply

Return to “Tips&Tricks”