Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
220 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 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...