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:
- Adding URL in
sources.list - 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
sources.listto tell apt to prefer one set of packages from a repo over another. That's whatpreferencesare for. – muru Aug 24 '18 at 07:06sudo apt-get install test-package=1.1(or=2.1) – muru Aug 24 '18 at 08:09