Projet

Général

Profil

Apt Backports TTNN » Historique » Version 1

Mehdi Abaakouk, 13/12/2015 18:46

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