New package vs new version?What is “dist-upgrade” and why does it upgrade more than “upgrade”?I...

Square Root Distance from Integers

Eww, those bytes are gross

How would an AI self awareness kill switch work?

Why was Lupin comfortable with saying Voldemort's name?

Is there a defined priority for pattern matching?

Why is Agricola named as such?

Saint abbreviation

Let's Encrypt and EV certificates on the same domain

Is "the fire consumed everything on its way" correct?

Can you tell from a blurry photo if focus was too close or too far?

Building an exterior wall within an exterior wall for insulation

Does dispel magic end a master's control over their undead?

Why are all my replica super soldiers young adults or old teenagers?

How to not let the Identify spell spoil everything?

Which communication protocol is used in AdLib sound card?

New package vs new version?

Does diversity provide anything that meritocracy does not?

Why would space fleets be aligned?

Boss asked me to sign a resignation paper without a date on it along with my new contract

Has Britain negotiated with any other countries outside the EU in preparation for the exit?

A curious equality of integrals involving the prime counting function?

Plausible reason for gold-digging ant

What is the wife of a henpecked husband called?

Why are the books in the Game of Thrones citadel library shelved spine inwards?



New package vs new version?


What is “dist-upgrade” and why does it upgrade more than “upgrade”?I installed the kernel 3.1.2-030102-generic and the update manager proposes me to install the 3.0.0-14 kernelHow to update kernel to the latest mainline version without any Distro-upgrade?Difference between the host and the guest OS kernel versionsHow do I get the real package name and version for a pseudo package?What happens to a .deb installed package with a Ubuntu version update that includes the same package?Skip updating certain updates in apt-getIs “upgrade --with-new-pkgs” safer than “dist-upgrade”?Unnecessary download when upgrading to 16.10How to I prevent Ubuntu from kernel version upgrade and notification?Avoid Ubuntu kernel Upgrade













3















In the question What is “dist-upgrade” and why does it upgrade more than “upgrade”? the accepted answer explains that linux-headers-3.0.0-13 is a new package replacing linux-headers-3.0.0-12.



How is it a new package and not simply a new version, and how to know (recognize) the difference?



Further, why is linux-headers-3.0.0-13 listed in the output of the command sudo apt-get upgrade if it is a new package and not a new version of an already installed package?



The answer hints at the argument that it is because linux-headers-3.0.0-12 and linux-headers-3.0.0-13 are connected to the same virtual package ("linux-headers is a virtual package that is provided by both linux-headers-3.0.0-12 and linux-headers-3.0.0-13"). Is it for this reason that linux-headers-3.0.0-13 is listed? And if so, why don't we see other packages provided by other virtual packages suggested as upgrades?



EDIT:



Although the example above concerns kernel packages, my question is not kernel-oriented but more general; or is it of kernel-only relevance?










share|improve this question

























  • dist-upgrade: in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages, it will attempt to upgrade the most important packages at the expense of less important ones if necessary.

    – cmak.fr
    2 hours ago
















3















In the question What is “dist-upgrade” and why does it upgrade more than “upgrade”? the accepted answer explains that linux-headers-3.0.0-13 is a new package replacing linux-headers-3.0.0-12.



How is it a new package and not simply a new version, and how to know (recognize) the difference?



Further, why is linux-headers-3.0.0-13 listed in the output of the command sudo apt-get upgrade if it is a new package and not a new version of an already installed package?



The answer hints at the argument that it is because linux-headers-3.0.0-12 and linux-headers-3.0.0-13 are connected to the same virtual package ("linux-headers is a virtual package that is provided by both linux-headers-3.0.0-12 and linux-headers-3.0.0-13"). Is it for this reason that linux-headers-3.0.0-13 is listed? And if so, why don't we see other packages provided by other virtual packages suggested as upgrades?



EDIT:



Although the example above concerns kernel packages, my question is not kernel-oriented but more general; or is it of kernel-only relevance?










share|improve this question

























  • dist-upgrade: in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages, it will attempt to upgrade the most important packages at the expense of less important ones if necessary.

    – cmak.fr
    2 hours ago














3












3








3








In the question What is “dist-upgrade” and why does it upgrade more than “upgrade”? the accepted answer explains that linux-headers-3.0.0-13 is a new package replacing linux-headers-3.0.0-12.



How is it a new package and not simply a new version, and how to know (recognize) the difference?



Further, why is linux-headers-3.0.0-13 listed in the output of the command sudo apt-get upgrade if it is a new package and not a new version of an already installed package?



The answer hints at the argument that it is because linux-headers-3.0.0-12 and linux-headers-3.0.0-13 are connected to the same virtual package ("linux-headers is a virtual package that is provided by both linux-headers-3.0.0-12 and linux-headers-3.0.0-13"). Is it for this reason that linux-headers-3.0.0-13 is listed? And if so, why don't we see other packages provided by other virtual packages suggested as upgrades?



EDIT:



Although the example above concerns kernel packages, my question is not kernel-oriented but more general; or is it of kernel-only relevance?










share|improve this question
















In the question What is “dist-upgrade” and why does it upgrade more than “upgrade”? the accepted answer explains that linux-headers-3.0.0-13 is a new package replacing linux-headers-3.0.0-12.



How is it a new package and not simply a new version, and how to know (recognize) the difference?



Further, why is linux-headers-3.0.0-13 listed in the output of the command sudo apt-get upgrade if it is a new package and not a new version of an already installed package?



The answer hints at the argument that it is because linux-headers-3.0.0-12 and linux-headers-3.0.0-13 are connected to the same virtual package ("linux-headers is a virtual package that is provided by both linux-headers-3.0.0-12 and linux-headers-3.0.0-13"). Is it for this reason that linux-headers-3.0.0-13 is listed? And if so, why don't we see other packages provided by other virtual packages suggested as upgrades?



EDIT:



Although the example above concerns kernel packages, my question is not kernel-oriented but more general; or is it of kernel-only relevance?







apt package-management upgrade kernel updates






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago







The Quark

















asked 2 hours ago









The QuarkThe Quark

365




365













  • dist-upgrade: in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages, it will attempt to upgrade the most important packages at the expense of less important ones if necessary.

    – cmak.fr
    2 hours ago



















  • dist-upgrade: in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages, it will attempt to upgrade the most important packages at the expense of less important ones if necessary.

    – cmak.fr
    2 hours ago

















dist-upgrade: in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages, it will attempt to upgrade the most important packages at the expense of less important ones if necessary.

– cmak.fr
2 hours ago





dist-upgrade: in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages, it will attempt to upgrade the most important packages at the expense of less important ones if necessary.

– cmak.fr
2 hours ago










2 Answers
2






active

oldest

votes


















4














The reason of having kernel meta-packages like linux-image-generic and linux-headers-generic pointing to real kernel packages is to allow having more than one instance of a kernel.



You can have linux-headers-3.0.0-13-generic and linux-headers-3.0.0-12-generic installed at the same time.



When you upgrade meta linux-headers-generic, it pulls the latest real package as a dependency. If we had these kernel packages as one with different versions, it would be always replaced.



apt-get upgrade doesn't install new packages



 upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.


That's why it doesn't upgrade meta packages that are dependent on new packages.



It is not kernel related. There are some other examples.






share|improve this answer


























  • Oh. So the key-word here is "dependency": it is because the new version of the virtual package linux-header-generic includes new dependencies that linux-headers-3.0.0-13-generic is listed but not fetched due to the rules of the apt-get upgrade command. And so it is not a kernel-specific scenario but it could occur with other non-kernel packages when a new package version has new. dependencies. Is that correct?

    – The Quark
    1 hour ago











  • This is correct.

    – Pilot6
    1 hour ago











  • Thank you @Pilot6. I also note that the other key-word here is "meta-package" instead of "virtual package" - other packages linked to a virtual package would actually not be considered by apt-get, right?

    – The Quark
    1 hour ago













  • It is very simple. apt-get upgrade doesn't install NEW packages.

    – Pilot6
    1 hour ago











  • Yes, I know. I understand now that the confusion came from the term "virtual package" used in the answer I referred to. Thank you.

    – The Quark
    1 hour ago



















2















How is it a new package and not simply a new version, and how to know (recognize) the difference?




Different packages have different names. Different versions of the same package have the same package name and different version numbers. You can see your installed packages and their version numbers with, e.g., apt list --installed:



firas@itsuki ~ % apt list --installed | grep linux-image
linux-image-4.18.0-14-generic/cosmic-updates,cosmic-security,now 4.18.0-14.15 amd64 [installed,automatic]
linux-image-4.18.0-15-generic/cosmic-updates,cosmic-security,now 4.18.0-15.16 amd64 [installed,automatic]
linux-image-generic/cosmic-updates,cosmic-security,now 4.18.0.15.16 amd64 [installed,automatic]


Here I have three installed packages whose names contain linux-image: linux-image-4.18.0-14-generic version 4.18.0-14.15, linux-image-4.18.0-15-generic version 4.18.0-15.16, and linux-image-generic version 4.18.0.15.16. In particular, linux-image-4.18.0-14-generic and linux-image-4.18.0-15-generic are different names, so they are different packages. Don't be fooled by how similar the names are, the point is that they are not the same. They might as well be named foo and bar.



Also, in the file names of .deb packages, the package name and version number are typically separated by underscores:



firas@itsuki ~ % ls /home/apt/archives/linux-image-*
/home/apt/archives/linux-image-4.18.0-14-generic_4.18.0-14.15_amd64.deb
/home/apt/archives/linux-image-4.18.0-15-generic_4.18.0-15.16_amd64.deb
/home/apt/archives/linux-image-generic_4.18.0.15.16_amd64.deb





share|improve this answer
























  • That's what I planned to add, but was too lazy. A good one.

    – Pilot6
    30 mins ago











  • Great complement to the answer of Pilot6. Thank you!

    – The Quark
    22 mins ago











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1121638%2fnew-package-vs-new-version%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














The reason of having kernel meta-packages like linux-image-generic and linux-headers-generic pointing to real kernel packages is to allow having more than one instance of a kernel.



You can have linux-headers-3.0.0-13-generic and linux-headers-3.0.0-12-generic installed at the same time.



When you upgrade meta linux-headers-generic, it pulls the latest real package as a dependency. If we had these kernel packages as one with different versions, it would be always replaced.



apt-get upgrade doesn't install new packages



 upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.


That's why it doesn't upgrade meta packages that are dependent on new packages.



It is not kernel related. There are some other examples.






share|improve this answer


























  • Oh. So the key-word here is "dependency": it is because the new version of the virtual package linux-header-generic includes new dependencies that linux-headers-3.0.0-13-generic is listed but not fetched due to the rules of the apt-get upgrade command. And so it is not a kernel-specific scenario but it could occur with other non-kernel packages when a new package version has new. dependencies. Is that correct?

    – The Quark
    1 hour ago











  • This is correct.

    – Pilot6
    1 hour ago











  • Thank you @Pilot6. I also note that the other key-word here is "meta-package" instead of "virtual package" - other packages linked to a virtual package would actually not be considered by apt-get, right?

    – The Quark
    1 hour ago













  • It is very simple. apt-get upgrade doesn't install NEW packages.

    – Pilot6
    1 hour ago











  • Yes, I know. I understand now that the confusion came from the term "virtual package" used in the answer I referred to. Thank you.

    – The Quark
    1 hour ago
















4














The reason of having kernel meta-packages like linux-image-generic and linux-headers-generic pointing to real kernel packages is to allow having more than one instance of a kernel.



You can have linux-headers-3.0.0-13-generic and linux-headers-3.0.0-12-generic installed at the same time.



When you upgrade meta linux-headers-generic, it pulls the latest real package as a dependency. If we had these kernel packages as one with different versions, it would be always replaced.



apt-get upgrade doesn't install new packages



 upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.


That's why it doesn't upgrade meta packages that are dependent on new packages.



It is not kernel related. There are some other examples.






share|improve this answer


























  • Oh. So the key-word here is "dependency": it is because the new version of the virtual package linux-header-generic includes new dependencies that linux-headers-3.0.0-13-generic is listed but not fetched due to the rules of the apt-get upgrade command. And so it is not a kernel-specific scenario but it could occur with other non-kernel packages when a new package version has new. dependencies. Is that correct?

    – The Quark
    1 hour ago











  • This is correct.

    – Pilot6
    1 hour ago











  • Thank you @Pilot6. I also note that the other key-word here is "meta-package" instead of "virtual package" - other packages linked to a virtual package would actually not be considered by apt-get, right?

    – The Quark
    1 hour ago













  • It is very simple. apt-get upgrade doesn't install NEW packages.

    – Pilot6
    1 hour ago











  • Yes, I know. I understand now that the confusion came from the term "virtual package" used in the answer I referred to. Thank you.

    – The Quark
    1 hour ago














4












4








4







The reason of having kernel meta-packages like linux-image-generic and linux-headers-generic pointing to real kernel packages is to allow having more than one instance of a kernel.



You can have linux-headers-3.0.0-13-generic and linux-headers-3.0.0-12-generic installed at the same time.



When you upgrade meta linux-headers-generic, it pulls the latest real package as a dependency. If we had these kernel packages as one with different versions, it would be always replaced.



apt-get upgrade doesn't install new packages



 upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.


That's why it doesn't upgrade meta packages that are dependent on new packages.



It is not kernel related. There are some other examples.






share|improve this answer















The reason of having kernel meta-packages like linux-image-generic and linux-headers-generic pointing to real kernel packages is to allow having more than one instance of a kernel.



You can have linux-headers-3.0.0-13-generic and linux-headers-3.0.0-12-generic installed at the same time.



When you upgrade meta linux-headers-generic, it pulls the latest real package as a dependency. If we had these kernel packages as one with different versions, it would be always replaced.



apt-get upgrade doesn't install new packages



 upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.


That's why it doesn't upgrade meta packages that are dependent on new packages.



It is not kernel related. There are some other examples.







share|improve this answer














share|improve this answer



share|improve this answer








edited 1 hour ago

























answered 2 hours ago









Pilot6Pilot6

52.5k15108197




52.5k15108197













  • Oh. So the key-word here is "dependency": it is because the new version of the virtual package linux-header-generic includes new dependencies that linux-headers-3.0.0-13-generic is listed but not fetched due to the rules of the apt-get upgrade command. And so it is not a kernel-specific scenario but it could occur with other non-kernel packages when a new package version has new. dependencies. Is that correct?

    – The Quark
    1 hour ago











  • This is correct.

    – Pilot6
    1 hour ago











  • Thank you @Pilot6. I also note that the other key-word here is "meta-package" instead of "virtual package" - other packages linked to a virtual package would actually not be considered by apt-get, right?

    – The Quark
    1 hour ago













  • It is very simple. apt-get upgrade doesn't install NEW packages.

    – Pilot6
    1 hour ago











  • Yes, I know. I understand now that the confusion came from the term "virtual package" used in the answer I referred to. Thank you.

    – The Quark
    1 hour ago



















  • Oh. So the key-word here is "dependency": it is because the new version of the virtual package linux-header-generic includes new dependencies that linux-headers-3.0.0-13-generic is listed but not fetched due to the rules of the apt-get upgrade command. And so it is not a kernel-specific scenario but it could occur with other non-kernel packages when a new package version has new. dependencies. Is that correct?

    – The Quark
    1 hour ago











  • This is correct.

    – Pilot6
    1 hour ago











  • Thank you @Pilot6. I also note that the other key-word here is "meta-package" instead of "virtual package" - other packages linked to a virtual package would actually not be considered by apt-get, right?

    – The Quark
    1 hour ago













  • It is very simple. apt-get upgrade doesn't install NEW packages.

    – Pilot6
    1 hour ago











  • Yes, I know. I understand now that the confusion came from the term "virtual package" used in the answer I referred to. Thank you.

    – The Quark
    1 hour ago

















Oh. So the key-word here is "dependency": it is because the new version of the virtual package linux-header-generic includes new dependencies that linux-headers-3.0.0-13-generic is listed but not fetched due to the rules of the apt-get upgrade command. And so it is not a kernel-specific scenario but it could occur with other non-kernel packages when a new package version has new. dependencies. Is that correct?

– The Quark
1 hour ago





Oh. So the key-word here is "dependency": it is because the new version of the virtual package linux-header-generic includes new dependencies that linux-headers-3.0.0-13-generic is listed but not fetched due to the rules of the apt-get upgrade command. And so it is not a kernel-specific scenario but it could occur with other non-kernel packages when a new package version has new. dependencies. Is that correct?

– The Quark
1 hour ago













This is correct.

– Pilot6
1 hour ago





This is correct.

– Pilot6
1 hour ago













Thank you @Pilot6. I also note that the other key-word here is "meta-package" instead of "virtual package" - other packages linked to a virtual package would actually not be considered by apt-get, right?

– The Quark
1 hour ago







Thank you @Pilot6. I also note that the other key-word here is "meta-package" instead of "virtual package" - other packages linked to a virtual package would actually not be considered by apt-get, right?

– The Quark
1 hour ago















It is very simple. apt-get upgrade doesn't install NEW packages.

– Pilot6
1 hour ago





It is very simple. apt-get upgrade doesn't install NEW packages.

– Pilot6
1 hour ago













Yes, I know. I understand now that the confusion came from the term "virtual package" used in the answer I referred to. Thank you.

– The Quark
1 hour ago





Yes, I know. I understand now that the confusion came from the term "virtual package" used in the answer I referred to. Thank you.

– The Quark
1 hour ago













2















How is it a new package and not simply a new version, and how to know (recognize) the difference?




Different packages have different names. Different versions of the same package have the same package name and different version numbers. You can see your installed packages and their version numbers with, e.g., apt list --installed:



firas@itsuki ~ % apt list --installed | grep linux-image
linux-image-4.18.0-14-generic/cosmic-updates,cosmic-security,now 4.18.0-14.15 amd64 [installed,automatic]
linux-image-4.18.0-15-generic/cosmic-updates,cosmic-security,now 4.18.0-15.16 amd64 [installed,automatic]
linux-image-generic/cosmic-updates,cosmic-security,now 4.18.0.15.16 amd64 [installed,automatic]


Here I have three installed packages whose names contain linux-image: linux-image-4.18.0-14-generic version 4.18.0-14.15, linux-image-4.18.0-15-generic version 4.18.0-15.16, and linux-image-generic version 4.18.0.15.16. In particular, linux-image-4.18.0-14-generic and linux-image-4.18.0-15-generic are different names, so they are different packages. Don't be fooled by how similar the names are, the point is that they are not the same. They might as well be named foo and bar.



Also, in the file names of .deb packages, the package name and version number are typically separated by underscores:



firas@itsuki ~ % ls /home/apt/archives/linux-image-*
/home/apt/archives/linux-image-4.18.0-14-generic_4.18.0-14.15_amd64.deb
/home/apt/archives/linux-image-4.18.0-15-generic_4.18.0-15.16_amd64.deb
/home/apt/archives/linux-image-generic_4.18.0.15.16_amd64.deb





share|improve this answer
























  • That's what I planned to add, but was too lazy. A good one.

    – Pilot6
    30 mins ago











  • Great complement to the answer of Pilot6. Thank you!

    – The Quark
    22 mins ago
















2















How is it a new package and not simply a new version, and how to know (recognize) the difference?




Different packages have different names. Different versions of the same package have the same package name and different version numbers. You can see your installed packages and their version numbers with, e.g., apt list --installed:



firas@itsuki ~ % apt list --installed | grep linux-image
linux-image-4.18.0-14-generic/cosmic-updates,cosmic-security,now 4.18.0-14.15 amd64 [installed,automatic]
linux-image-4.18.0-15-generic/cosmic-updates,cosmic-security,now 4.18.0-15.16 amd64 [installed,automatic]
linux-image-generic/cosmic-updates,cosmic-security,now 4.18.0.15.16 amd64 [installed,automatic]


Here I have three installed packages whose names contain linux-image: linux-image-4.18.0-14-generic version 4.18.0-14.15, linux-image-4.18.0-15-generic version 4.18.0-15.16, and linux-image-generic version 4.18.0.15.16. In particular, linux-image-4.18.0-14-generic and linux-image-4.18.0-15-generic are different names, so they are different packages. Don't be fooled by how similar the names are, the point is that they are not the same. They might as well be named foo and bar.



Also, in the file names of .deb packages, the package name and version number are typically separated by underscores:



firas@itsuki ~ % ls /home/apt/archives/linux-image-*
/home/apt/archives/linux-image-4.18.0-14-generic_4.18.0-14.15_amd64.deb
/home/apt/archives/linux-image-4.18.0-15-generic_4.18.0-15.16_amd64.deb
/home/apt/archives/linux-image-generic_4.18.0.15.16_amd64.deb





share|improve this answer
























  • That's what I planned to add, but was too lazy. A good one.

    – Pilot6
    30 mins ago











  • Great complement to the answer of Pilot6. Thank you!

    – The Quark
    22 mins ago














2












2








2








How is it a new package and not simply a new version, and how to know (recognize) the difference?




Different packages have different names. Different versions of the same package have the same package name and different version numbers. You can see your installed packages and their version numbers with, e.g., apt list --installed:



firas@itsuki ~ % apt list --installed | grep linux-image
linux-image-4.18.0-14-generic/cosmic-updates,cosmic-security,now 4.18.0-14.15 amd64 [installed,automatic]
linux-image-4.18.0-15-generic/cosmic-updates,cosmic-security,now 4.18.0-15.16 amd64 [installed,automatic]
linux-image-generic/cosmic-updates,cosmic-security,now 4.18.0.15.16 amd64 [installed,automatic]


Here I have three installed packages whose names contain linux-image: linux-image-4.18.0-14-generic version 4.18.0-14.15, linux-image-4.18.0-15-generic version 4.18.0-15.16, and linux-image-generic version 4.18.0.15.16. In particular, linux-image-4.18.0-14-generic and linux-image-4.18.0-15-generic are different names, so they are different packages. Don't be fooled by how similar the names are, the point is that they are not the same. They might as well be named foo and bar.



Also, in the file names of .deb packages, the package name and version number are typically separated by underscores:



firas@itsuki ~ % ls /home/apt/archives/linux-image-*
/home/apt/archives/linux-image-4.18.0-14-generic_4.18.0-14.15_amd64.deb
/home/apt/archives/linux-image-4.18.0-15-generic_4.18.0-15.16_amd64.deb
/home/apt/archives/linux-image-generic_4.18.0.15.16_amd64.deb





share|improve this answer














How is it a new package and not simply a new version, and how to know (recognize) the difference?




Different packages have different names. Different versions of the same package have the same package name and different version numbers. You can see your installed packages and their version numbers with, e.g., apt list --installed:



firas@itsuki ~ % apt list --installed | grep linux-image
linux-image-4.18.0-14-generic/cosmic-updates,cosmic-security,now 4.18.0-14.15 amd64 [installed,automatic]
linux-image-4.18.0-15-generic/cosmic-updates,cosmic-security,now 4.18.0-15.16 amd64 [installed,automatic]
linux-image-generic/cosmic-updates,cosmic-security,now 4.18.0.15.16 amd64 [installed,automatic]


Here I have three installed packages whose names contain linux-image: linux-image-4.18.0-14-generic version 4.18.0-14.15, linux-image-4.18.0-15-generic version 4.18.0-15.16, and linux-image-generic version 4.18.0.15.16. In particular, linux-image-4.18.0-14-generic and linux-image-4.18.0-15-generic are different names, so they are different packages. Don't be fooled by how similar the names are, the point is that they are not the same. They might as well be named foo and bar.



Also, in the file names of .deb packages, the package name and version number are typically separated by underscores:



firas@itsuki ~ % ls /home/apt/archives/linux-image-*
/home/apt/archives/linux-image-4.18.0-14-generic_4.18.0-14.15_amd64.deb
/home/apt/archives/linux-image-4.18.0-15-generic_4.18.0-15.16_amd64.deb
/home/apt/archives/linux-image-generic_4.18.0.15.16_amd64.deb






share|improve this answer












share|improve this answer



share|improve this answer










answered 32 mins ago









fkraiemfkraiem

8,96631830




8,96631830













  • That's what I planned to add, but was too lazy. A good one.

    – Pilot6
    30 mins ago











  • Great complement to the answer of Pilot6. Thank you!

    – The Quark
    22 mins ago



















  • That's what I planned to add, but was too lazy. A good one.

    – Pilot6
    30 mins ago











  • Great complement to the answer of Pilot6. Thank you!

    – The Quark
    22 mins ago

















That's what I planned to add, but was too lazy. A good one.

– Pilot6
30 mins ago





That's what I planned to add, but was too lazy. A good one.

– Pilot6
30 mins ago













Great complement to the answer of Pilot6. Thank you!

– The Quark
22 mins ago





Great complement to the answer of Pilot6. Thank you!

– The Quark
22 mins ago


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1121638%2fnew-package-vs-new-version%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...