Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
223 views
in Technique[技术] by (71.8m points)

linux - package created by install4j not recognised as newer

I have version "1.0" of my application installed on Linux (ubuntu and fedora). To test the update I created a version "1.1". install4j downloads the package but then the package manager just tells me that this package is already installed.

This is so for both Ubuntu (apt) and Fedora (rpm).

"1.1" is greater than "1.0". But it seems linux is not looking at that. What is the best way to tell linux package managers that this is a newer version of the same package. I also don't know if it would be possible to make a version "1.10" (major: 1 minor: 10) that would replace "1.9" and older.

I tried rpm -i filename.rpm and it tells me that it "collides" with the one already installed.
However, sudo apt install ./filename.deb actually installs version 1.1. Only the GUI program that ubuntu comes with only gives me the option to remove the package but not to upgrade. Similarly it would also do a downgrade but in that case it prompts for a confirmation.

question from:https://stackoverflow.com/questions/65935783/package-created-by-install4j-not-recognised-as-newer

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...