Differences between revisions 1 and 2
Revision 1 as of 2010-07-02 18:10:52
Size: 728
Editor: HenriLeFoll
Comment: new page
Revision 2 as of 2010-10-23 11:39:57
Size: 1032
Comment: added link to it translation + fixes
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 - [[it/DebianRepository/HowTo/TrivialRepository|Italiano]]-~||<style="text-align: right;border: 0px hidden"> (!) [[/Discussion|Discussion]]||
----
Line 4: Line 7:
You need dpkg-scanpackages which is in dpkg-dev You need dpkg-scanpackages which is in DebPkg:dpkg-dev.
Line 6: Line 9:
add this line to /etc/apt/sources.list Add this line to {{{/etc/apt/sources.list}}}
Line 11: Line 14:
Create a directory for the deb files. (for exemple /root/deb) Create a directory for the deb files. (For example {{{/root/deb}}})

Translation(s): English - Italiano

(!) ?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 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.