Differences between revisions 3 and 4
Revision 3 as of 2013-02-17 10:57:56
Size: 1092
Comment: Add link to french translation
Revision 4 as of 2017-03-27 19:13:56
Size: 49
Comment: Reorganization of Repository related pages
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#language en
||<tablestyle="width: 100%;" style="border: 0px hidden">~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[fr/DebianRepository/HowTo/TrivialRepository|Français]] - [[it/DebianRepository/HowTo/TrivialRepository|Italiano]]-~||<style="text-align: right;border: 0px hidden"> (!) [[/Discussion|Discussion]]||
----
== How to setup a trivial archive ==
The "trivial archive" lacks support for '''apt-pinning''' and modern '''secure APT''' due to the collision of 2 types of Release files. (e.g., old "Debian Reference (sarge)" and "APT HOWTO (sarge)")

You need dpkg-scanpackages which is in DebPkg:dpkg-dev.

Add this line to {{{/etc/apt/sources.list}}}
{{{
  deb file:/path/to directory ./
}}}

Create a directory for the deb files. (For example {{{/root/deb}}})
{{{
export REPO=/root/deb
mkdir $REPO
}}}

Then every time you put new files in the directory, you'll have to scan the directory and update aptitude.
{{{
cp *.deb $REPO
cd $REPO
dpkg-scanpackages . | gzip > Packages.gz
aptitude update
}}}

Then you can install the package.
#redirect DebianRepository/Setup#trivialArchive