[SOLVED] Versionized package installation

If none of the more specific forums is the right place to ask

[SOLVED] Versionized package installation

Postby levrik » 2018-03-17 18:23

Hi,
I would like to automate package installation on different debian nodes. I do have to ensure, that the correct package versions for each node are getting installed (which are not necessarily the newest in the repository!).
AFAIK "dpkg --set-selections" does not care about versions. I would like to have some text/xml/json/whatsoever file which defines the package names plus versions which should be installed. Is there any toolset in place which could be used, or is my use case that extraordinary that i do have to implement that with scripts?

Thanks for hints.
Last edited by levrik on 2018-03-18 06:43, edited 1 time in total.
levrik
 
Posts: 3
Joined: 2018-03-17 17:25

Re: Versionized package installation

Postby debiman » 2018-03-17 19:24

you do not mention which debian version you use.

why do you need some specific version of what software?

in any case, debian's package management allows for a LOT of fine-tuning - after defining your requirements (for yourself), you should check first if what you want is possible with apt.
User avatar
debiman
 
Posts: 3064
Joined: 2013-03-12 07:18

Re: Versionized package installation

Postby levrik » 2018-03-17 20:02

I'm talking about jessie and stretch. It is a part of a product where debian based embedded devices (running software provided by debian as well as self written software) get tested and approved by customers and are not allowed to be changed again without further test and approval. I would like to define the packages and their (approved) versions for each customer and be able to automatically install them by some build agent.
levrik
 
Posts: 3
Joined: 2018-03-17 17:25

Re: Versionized package installation

Postby Head_on_a_Stick » 2018-03-17 20:17

Have you read apt_preferences(5)?

I don't have much personal experience of pinning but I think it can do what you want.
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8315
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Versionized package installation

Postby levrik » 2018-03-18 06:42

Thank you for your hint!
After a first glimpse into the man page it seems useful to me.
levrik
 
Posts: 3
Joined: 2018-03-17 17:25


Return to General Questions

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable