1

I am creating a local repository which will contain all the debians (debs) for Ubuntu. It will also contain kernel debians for 2 different branches like say 1.1 and 2.1

I have created a single empty debian package, say test-package which contains information for all other dependent debians from same repo. Currently it has information on kernel 1.1.

Structure of local repo is as follows:

The folder dists/xenial/release/test-package contains folders k, l, m, v which contain debs.

The folders binary-amd64 and binary-i386 are also created which contains Packages file for corresponding architectures.

Steps performed on the client machine:

  1. Adding URL in sources.list
  2. Running command apt-get install test-package

My issue is:

How can I inform sources.list to pick specific kernel installation and its corresponding debians (debs) available from local repo. i.e. it should install either 1.1 or 2.1 kernel.

TIA

Zanna
  • 72,312

1 Answers1

2

Created 2 separate debs for 1.1 and 2.1 and kept in same repo server i.e. In my repo server dists/xenial/release/test-package is created and inside this folder in folder 't' I created 2 debs i.e. test-package-1.1 and test-package-2.1.

Added

http://[server]/ubuntu/dists xenial/release test-package

in sources.list.

Now when I run apt-get install test-package-1.1, it installs 1.1 package and similarly for 2.1.

Not sure if this is correct approach but it is working for me as desired.

Zanna
  • 72,312