Projet

Général

Profil

Apt Backports TTNN » Historique » Version 2

Mehdi Abaakouk, 13/12/2015 18:49

1 1 Mehdi Abaakouk
h1. Apt Backports TTNN
2 1 Mehdi Abaakouk
3 1 Mehdi Abaakouk
h2. Backport example de attic:
4 1 Mehdi Abaakouk
5 2 Mehdi Abaakouk
<pre>
6 1 Mehdi Abaakouk
# dget http://http.debian.net/debian/pool/main/a/attic/attic_0.16-2.dsc
7 1 Mehdi Abaakouk
# dpkg-source -x attic_0.16-2.dsc
8 1 Mehdi Abaakouk
# cd attic_0.16
9 1 Mehdi Abaakouk
# dch -i 
10 1 Mehdi Abaakouk
Ajouter ttnn1 à la version..
11 1 Mehdi Abaakouk
# debuild
12 1 Mehdi Abaakouk
13 1 Mehdi Abaakouk
# cd -
14 1 Mehdi Abaakouk
# aptly repo add ttnn-jessie *.dsc
15 1 Mehdi Abaakouk
Loading packages...
16 1 Mehdi Abaakouk
[+] attic_0.16-2_source added
17 1 Mehdi Abaakouk
# aptly repo add ttnn-jessie *.deb
18 1 Mehdi Abaakouk
Loading packages...
19 1 Mehdi Abaakouk
[+] attic_0.16-2_amd64 added
20 1 Mehdi Abaakouk
21 1 Mehdi Abaakouk
# aptly publish  -distribution ttnn-jessie -skip-signing=true repo ttnn-jessie
22 1 Mehdi Abaakouk
Loading packages...
23 1 Mehdi Abaakouk
Generating metadata files and linking package files...
24 1 Mehdi Abaakouk
Finalizing metadata files...
25 1 Mehdi Abaakouk
26 1 Mehdi Abaakouk
Local repo ttnn-jessie has been successfully published.
27 1 Mehdi Abaakouk
Please setup your webserver to serve directory '/var/www/aptly/public' with autoindexing.
28 1 Mehdi Abaakouk
Now you can add following line to apt sources:
29 1 Mehdi Abaakouk
  deb http://your-server/ ttnn-jessie main
30 1 Mehdi Abaakouk
  deb-src http://your-server/ ttnn-jessie main
31 1 Mehdi Abaakouk
Don't forget to add your GPG key to apt with apt-key.
32 1 Mehdi Abaakouk
33 1 Mehdi Abaakouk
You can also use `aptly serve` to publish your repositories over HTTP quickly.
34 1 Mehdi Abaakouk
35 1 Mehdi Abaakouk
# aptly publish update ttnn-jessie
36 1 Mehdi Abaakouk
Loading packages...
37 1 Mehdi Abaakouk
Generating metadata files and linking package files...
38 1 Mehdi Abaakouk
Finalizing metadata files...
39 1 Mehdi Abaakouk
Cleaning up prefix "." components main...
40 1 Mehdi Abaakouk
41 1 Mehdi Abaakouk
Publish for local repo ./ttnn-jessie [amd64, source] publishes {main: [ttnn-jessie]} has been successfully updated.
42 2 Mehdi Abaakouk
</pre>
43 1 Mehdi Abaakouk
44 1 Mehdi Abaakouk
h2. Creation initial du depot
45 1 Mehdi Abaakouk
46 1 Mehdi Abaakouk
Sur la machine puppet:
47 1 Mehdi Abaakouk
48 1 Mehdi Abaakouk
# cat .aptly.conf
49 1 Mehdi Abaakouk
{
50 1 Mehdi Abaakouk
  "rootDir": "/var/www/aptly",
51 1 Mehdi Abaakouk
  "downloadConcurrency": 4,
52 1 Mehdi Abaakouk
  "downloadSpeedLimit": 0,
53 1 Mehdi Abaakouk
  "architectures": [],
54 1 Mehdi Abaakouk
  "dependencyFollowSuggests": false,
55 1 Mehdi Abaakouk
  "dependencyFollowRecommends": false,
56 1 Mehdi Abaakouk
  "dependencyFollowAllVariants": false,
57 1 Mehdi Abaakouk
  "dependencyFollowSource": false,
58 1 Mehdi Abaakouk
  "gpgDisableSign": true,
59 1 Mehdi Abaakouk
  "gpgDisableVerify": false,
60 1 Mehdi Abaakouk
  "downloadSourcePackages": false,
61 1 Mehdi Abaakouk
  "ppaDistributorID": "ubuntu",
62 1 Mehdi Abaakouk
  "ppaCodename": "",
63 1 Mehdi Abaakouk
  "S3PublishEndpoints": {}
64 1 Mehdi Abaakouk
}
65 1 Mehdi Abaakouk
66 1 Mehdi Abaakouk
# aptly repo create ttnn-trusty
67 1 Mehdi Abaakouk
# aptly repo create ttnn-jessie
68 1 Mehdi Abaakouk
69 1 Mehdi Abaakouk
/var/www/aptly est le documentroot de apache http://puppet.tetaneutral.net