New package vs new version?What is “dist-upgrade” and why does it upgrade more than “upgrade”?I...
What's a good word to describe a public place that looks like it wouldn't be rough?
Contest math problem about crossing out numbers in the table
How to avoid being sexist when trying to employ someone to function in a very sexist environment?
Am I a Rude Number?
Cryptic with missing capitals
Is a debit card dangerous in my situation?
If I delete my router's history can my ISP still provide it to my parents?
Broken patches on a road
Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?
Why don't American passenger airlines operate dedicated cargo flights any more?
Why is working on the same position for more than 15 years not a red flag?
What is the most triangles you can make from a capital "H" and 3 straight lines?
Program that converts a number to a letter of the alphabet
Slow moving projectiles from a hand-held weapon - how do they reach the target?
How would a Dictatorship make a country more successful?
How can animals be objects of ethics without being subjects as well?
Why zero tolerance on nudity in space?
What kind of hardware implements Fourier transform?
Can an insurance company drop you after receiving a bill and refusing to pay?
Difference between two quite-similar Terminal commands
Lick explanation
How to tag distinct options/entities without giving any an implicit priority or suggested order?
How does Arcane Armament interact with the Artillerist Artificer's Wand Prototype feature?
A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?
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
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
add a comment |
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
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 days ago
add a comment |
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
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
apt package-management upgrade kernel updates
edited 2 days ago
The Quark
asked 2 days ago
The QuarkThe Quark
436
436
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 days ago
add a comment |
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 days 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 days 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 days ago
add a comment |
2 Answers
2
active
oldest
votes
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.
Oh. So the key-word here is "dependency": it is because the new version of the virtual packagelinux-header-generic
includes new dependencies thatlinux-headers-3.0.0-13-generic
is listed but not fetched due to the rules of theapt-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
2 days ago
This is correct.
– Pilot6
2 days 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
2 days ago
It is very simple.apt-get upgrade
doesn't install NEW packages.
– Pilot6
2 days 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
2 days ago
|
show 3 more comments
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
That's what I planned to add, but was too lazy. A good one.
– Pilot6
2 days ago
Great complement to the answer of Pilot6. Thank you!
– The Quark
2 days ago
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Oh. So the key-word here is "dependency": it is because the new version of the virtual packagelinux-header-generic
includes new dependencies thatlinux-headers-3.0.0-13-generic
is listed but not fetched due to the rules of theapt-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
2 days ago
This is correct.
– Pilot6
2 days 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
2 days ago
It is very simple.apt-get upgrade
doesn't install NEW packages.
– Pilot6
2 days 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
2 days ago
|
show 3 more comments
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.
Oh. So the key-word here is "dependency": it is because the new version of the virtual packagelinux-header-generic
includes new dependencies thatlinux-headers-3.0.0-13-generic
is listed but not fetched due to the rules of theapt-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
2 days ago
This is correct.
– Pilot6
2 days 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
2 days ago
It is very simple.apt-get upgrade
doesn't install NEW packages.
– Pilot6
2 days 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
2 days ago
|
show 3 more comments
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.
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.
edited 2 days ago
answered 2 days ago
Pilot6Pilot6
52.7k15108197
52.7k15108197
Oh. So the key-word here is "dependency": it is because the new version of the virtual packagelinux-header-generic
includes new dependencies thatlinux-headers-3.0.0-13-generic
is listed but not fetched due to the rules of theapt-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
2 days ago
This is correct.
– Pilot6
2 days 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
2 days ago
It is very simple.apt-get upgrade
doesn't install NEW packages.
– Pilot6
2 days 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
2 days ago
|
show 3 more comments
Oh. So the key-word here is "dependency": it is because the new version of the virtual packagelinux-header-generic
includes new dependencies thatlinux-headers-3.0.0-13-generic
is listed but not fetched due to the rules of theapt-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
2 days ago
This is correct.
– Pilot6
2 days 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
2 days ago
It is very simple.apt-get upgrade
doesn't install NEW packages.
– Pilot6
2 days 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
2 days 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
2 days 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
2 days ago
This is correct.
– Pilot6
2 days ago
This is correct.
– Pilot6
2 days 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
2 days 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
2 days ago
It is very simple.
apt-get upgrade
doesn't install NEW packages.– Pilot6
2 days ago
It is very simple.
apt-get upgrade
doesn't install NEW packages.– Pilot6
2 days 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
2 days 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
2 days ago
|
show 3 more comments
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
That's what I planned to add, but was too lazy. A good one.
– Pilot6
2 days ago
Great complement to the answer of Pilot6. Thank you!
– The Quark
2 days ago
add a comment |
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
That's what I planned to add, but was too lazy. A good one.
– Pilot6
2 days ago
Great complement to the answer of Pilot6. Thank you!
– The Quark
2 days ago
add a comment |
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
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
answered 2 days ago
fkraiemfkraiem
8,98631830
8,98631830
That's what I planned to add, but was too lazy. A good one.
– Pilot6
2 days ago
Great complement to the answer of Pilot6. Thank you!
– The Quark
2 days ago
add a comment |
That's what I planned to add, but was too lazy. A good one.
– Pilot6
2 days ago
Great complement to the answer of Pilot6. Thank you!
– The Quark
2 days ago
That's what I planned to add, but was too lazy. A good one.
– Pilot6
2 days ago
That's what I planned to add, but was too lazy. A good one.
– Pilot6
2 days ago
Great complement to the answer of Pilot6. Thank you!
– The Quark
2 days ago
Great complement to the answer of Pilot6. Thank you!
– The Quark
2 days ago
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 days ago