What is the difference between installing from a downloaded .deb file and from the command “sudo apt-get...
This question is very fundamental. But I don't see it answered here. What is the difference between installing a .deb
file and installing a package via sudo apt-get install
When I am going to download for eg ;OSMC here, they have both the options as choice. Is there any benefit from choosing one over the other? What is the technical difference?
apt package-management deb
add a comment |
This question is very fundamental. But I don't see it answered here. What is the difference between installing a .deb
file and installing a package via sudo apt-get install
When I am going to download for eg ;OSMC here, they have both the options as choice. Is there any benefit from choosing one over the other? What is the technical difference?
apt package-management deb
add a comment |
This question is very fundamental. But I don't see it answered here. What is the difference between installing a .deb
file and installing a package via sudo apt-get install
When I am going to download for eg ;OSMC here, they have both the options as choice. Is there any benefit from choosing one over the other? What is the technical difference?
apt package-management deb
This question is very fundamental. But I don't see it answered here. What is the difference between installing a .deb
file and installing a package via sudo apt-get install
When I am going to download for eg ;OSMC here, they have both the options as choice. Is there any benefit from choosing one over the other? What is the technical difference?
apt package-management deb
apt package-management deb
edited Jan 24 at 23:57
user47206
asked Jan 24 at 16:46
ErdnaseErdnase
1151117
1151117
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
A deb file is a type of format for the packaging Linux programs - specific to Debian-based distributions (in the way in Windows you have the "exe" files). It can be downloaded on your computer and installed.
The installation can be
- manual (one of the options you mention), when you download the deb and then install with a specialized program, or
- automatic (the deb is downloaded and installed by a program).
Among the programs (GUI or CLI) that can manage the installation some
can do both those things (GUI: Ubuntu Software Center, Discover; CLI:
apt
,apt-get
;can only install from a local deb file (GUI: Gdebi, Qapt; CLI:
dpkg
, which is the base for all the other tools mentioned here - as said in the other answer);can only download & install automatically (that's just GUI: Synaptic, Apper, Muon).
So, apt
or apt-get
(like their GUI equivalents Ubuntu Software Center and Discover) can download the deb packages before installing them if the specific software source (or "repository") is already registered to your system or if you add it yourself OR they can install a program from a deb file that you already have.
Is there any benefit from choosing one over the other? What is the
technical difference?
The main difference is not between the way installation is done in the two cases, but in the origin of the deb file. Just as you can download a file from the internet from a trusted or a less-trusted source, repositories are of different categories. The main difference is between official system sources (those provided by Ubuntu) and those provided by third parties.
There is no point in installing from local file a program that is available in repositories unless you lack internet connection, or you want to install a program version that is not in the repositories.
Usually the main reason for adding a new repo or installing from a local file is the absence in repos of a program or of a certain version of a program.
Remember: on Ubuntu sudo apt install
command installs from deb anyway. The difference is whether you have the deb already on your computer or the installer will download it for you. In the latter case deb file are downloaded at /var/cache/apt/archives
.
Deb files can be found not only on the internet, in some cases they can also be created from sources or converted from other formats (namely from rpm
packages - specific to RedHat/Fedora - based distributions).
add a comment |
A .deb
file is a package containing all the needed files for the application,
plus some utility files used for installation/removal, etc.
These are installed via dpkg
, the "Debian Package Manager".
apt-get
is a frontend to dpkg
(as is apt
, aptitute
, ...). Simply said apt
downloads the .deb
from known repository sources and calls dpkg
under the hood to execute actions on them (i.e. install, remove, purge, etc.).
But it's not all! The apt
family do a lot of extra things for you.
- It make sure the repository cache is up to date (
apt update
), so it will always install the "latest" version available for your OS. - It automatically resolves dependencies for you, so you won't have to look around the Internet for the correct
.deb
files to install (and their correct version) to satisfy the dependencies of the.deb
you want to install. - The same dependency resolution helps you when you want to remove a package.
apt
suggests you which other packages were installed as dependencies (or you can instruct it to remove them automatically).
Usually, you'll want to use apt
, as it keeps (or at least it tries hard!) your system clean and functional. There are cases where the "download .deb
file manually and install via dpkg
is preferable.
Obvioulsy, if the package maintainer does not publish it on the official repositories, nor on any PPA, nor has any interest of providing a repository. In this case the only option is download + dpkg
.
Or maybe, you customized your system in some non-standard way, so you need to install and manage the package manually as apt
gets "confused" and cannot resolve conflicts/dependencies/etc...
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%2f1112556%2fwhat-is-the-difference-between-installing-from-a-downloaded-deb-file-and-from-t%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
A deb file is a type of format for the packaging Linux programs - specific to Debian-based distributions (in the way in Windows you have the "exe" files). It can be downloaded on your computer and installed.
The installation can be
- manual (one of the options you mention), when you download the deb and then install with a specialized program, or
- automatic (the deb is downloaded and installed by a program).
Among the programs (GUI or CLI) that can manage the installation some
can do both those things (GUI: Ubuntu Software Center, Discover; CLI:
apt
,apt-get
;can only install from a local deb file (GUI: Gdebi, Qapt; CLI:
dpkg
, which is the base for all the other tools mentioned here - as said in the other answer);can only download & install automatically (that's just GUI: Synaptic, Apper, Muon).
So, apt
or apt-get
(like their GUI equivalents Ubuntu Software Center and Discover) can download the deb packages before installing them if the specific software source (or "repository") is already registered to your system or if you add it yourself OR they can install a program from a deb file that you already have.
Is there any benefit from choosing one over the other? What is the
technical difference?
The main difference is not between the way installation is done in the two cases, but in the origin of the deb file. Just as you can download a file from the internet from a trusted or a less-trusted source, repositories are of different categories. The main difference is between official system sources (those provided by Ubuntu) and those provided by third parties.
There is no point in installing from local file a program that is available in repositories unless you lack internet connection, or you want to install a program version that is not in the repositories.
Usually the main reason for adding a new repo or installing from a local file is the absence in repos of a program or of a certain version of a program.
Remember: on Ubuntu sudo apt install
command installs from deb anyway. The difference is whether you have the deb already on your computer or the installer will download it for you. In the latter case deb file are downloaded at /var/cache/apt/archives
.
Deb files can be found not only on the internet, in some cases they can also be created from sources or converted from other formats (namely from rpm
packages - specific to RedHat/Fedora - based distributions).
add a comment |
A deb file is a type of format for the packaging Linux programs - specific to Debian-based distributions (in the way in Windows you have the "exe" files). It can be downloaded on your computer and installed.
The installation can be
- manual (one of the options you mention), when you download the deb and then install with a specialized program, or
- automatic (the deb is downloaded and installed by a program).
Among the programs (GUI or CLI) that can manage the installation some
can do both those things (GUI: Ubuntu Software Center, Discover; CLI:
apt
,apt-get
;can only install from a local deb file (GUI: Gdebi, Qapt; CLI:
dpkg
, which is the base for all the other tools mentioned here - as said in the other answer);can only download & install automatically (that's just GUI: Synaptic, Apper, Muon).
So, apt
or apt-get
(like their GUI equivalents Ubuntu Software Center and Discover) can download the deb packages before installing them if the specific software source (or "repository") is already registered to your system or if you add it yourself OR they can install a program from a deb file that you already have.
Is there any benefit from choosing one over the other? What is the
technical difference?
The main difference is not between the way installation is done in the two cases, but in the origin of the deb file. Just as you can download a file from the internet from a trusted or a less-trusted source, repositories are of different categories. The main difference is between official system sources (those provided by Ubuntu) and those provided by third parties.
There is no point in installing from local file a program that is available in repositories unless you lack internet connection, or you want to install a program version that is not in the repositories.
Usually the main reason for adding a new repo or installing from a local file is the absence in repos of a program or of a certain version of a program.
Remember: on Ubuntu sudo apt install
command installs from deb anyway. The difference is whether you have the deb already on your computer or the installer will download it for you. In the latter case deb file are downloaded at /var/cache/apt/archives
.
Deb files can be found not only on the internet, in some cases they can also be created from sources or converted from other formats (namely from rpm
packages - specific to RedHat/Fedora - based distributions).
add a comment |
A deb file is a type of format for the packaging Linux programs - specific to Debian-based distributions (in the way in Windows you have the "exe" files). It can be downloaded on your computer and installed.
The installation can be
- manual (one of the options you mention), when you download the deb and then install with a specialized program, or
- automatic (the deb is downloaded and installed by a program).
Among the programs (GUI or CLI) that can manage the installation some
can do both those things (GUI: Ubuntu Software Center, Discover; CLI:
apt
,apt-get
;can only install from a local deb file (GUI: Gdebi, Qapt; CLI:
dpkg
, which is the base for all the other tools mentioned here - as said in the other answer);can only download & install automatically (that's just GUI: Synaptic, Apper, Muon).
So, apt
or apt-get
(like their GUI equivalents Ubuntu Software Center and Discover) can download the deb packages before installing them if the specific software source (or "repository") is already registered to your system or if you add it yourself OR they can install a program from a deb file that you already have.
Is there any benefit from choosing one over the other? What is the
technical difference?
The main difference is not between the way installation is done in the two cases, but in the origin of the deb file. Just as you can download a file from the internet from a trusted or a less-trusted source, repositories are of different categories. The main difference is between official system sources (those provided by Ubuntu) and those provided by third parties.
There is no point in installing from local file a program that is available in repositories unless you lack internet connection, or you want to install a program version that is not in the repositories.
Usually the main reason for adding a new repo or installing from a local file is the absence in repos of a program or of a certain version of a program.
Remember: on Ubuntu sudo apt install
command installs from deb anyway. The difference is whether you have the deb already on your computer or the installer will download it for you. In the latter case deb file are downloaded at /var/cache/apt/archives
.
Deb files can be found not only on the internet, in some cases they can also be created from sources or converted from other formats (namely from rpm
packages - specific to RedHat/Fedora - based distributions).
A deb file is a type of format for the packaging Linux programs - specific to Debian-based distributions (in the way in Windows you have the "exe" files). It can be downloaded on your computer and installed.
The installation can be
- manual (one of the options you mention), when you download the deb and then install with a specialized program, or
- automatic (the deb is downloaded and installed by a program).
Among the programs (GUI or CLI) that can manage the installation some
can do both those things (GUI: Ubuntu Software Center, Discover; CLI:
apt
,apt-get
;can only install from a local deb file (GUI: Gdebi, Qapt; CLI:
dpkg
, which is the base for all the other tools mentioned here - as said in the other answer);can only download & install automatically (that's just GUI: Synaptic, Apper, Muon).
So, apt
or apt-get
(like their GUI equivalents Ubuntu Software Center and Discover) can download the deb packages before installing them if the specific software source (or "repository") is already registered to your system or if you add it yourself OR they can install a program from a deb file that you already have.
Is there any benefit from choosing one over the other? What is the
technical difference?
The main difference is not between the way installation is done in the two cases, but in the origin of the deb file. Just as you can download a file from the internet from a trusted or a less-trusted source, repositories are of different categories. The main difference is between official system sources (those provided by Ubuntu) and those provided by third parties.
There is no point in installing from local file a program that is available in repositories unless you lack internet connection, or you want to install a program version that is not in the repositories.
Usually the main reason for adding a new repo or installing from a local file is the absence in repos of a program or of a certain version of a program.
Remember: on Ubuntu sudo apt install
command installs from deb anyway. The difference is whether you have the deb already on your computer or the installer will download it for you. In the latter case deb file are downloaded at /var/cache/apt/archives
.
Deb files can be found not only on the internet, in some cases they can also be created from sources or converted from other formats (namely from rpm
packages - specific to RedHat/Fedora - based distributions).
edited Jan 24 at 23:54
answered Jan 24 at 16:59
user47206
add a comment |
add a comment |
A .deb
file is a package containing all the needed files for the application,
plus some utility files used for installation/removal, etc.
These are installed via dpkg
, the "Debian Package Manager".
apt-get
is a frontend to dpkg
(as is apt
, aptitute
, ...). Simply said apt
downloads the .deb
from known repository sources and calls dpkg
under the hood to execute actions on them (i.e. install, remove, purge, etc.).
But it's not all! The apt
family do a lot of extra things for you.
- It make sure the repository cache is up to date (
apt update
), so it will always install the "latest" version available for your OS. - It automatically resolves dependencies for you, so you won't have to look around the Internet for the correct
.deb
files to install (and their correct version) to satisfy the dependencies of the.deb
you want to install. - The same dependency resolution helps you when you want to remove a package.
apt
suggests you which other packages were installed as dependencies (or you can instruct it to remove them automatically).
Usually, you'll want to use apt
, as it keeps (or at least it tries hard!) your system clean and functional. There are cases where the "download .deb
file manually and install via dpkg
is preferable.
Obvioulsy, if the package maintainer does not publish it on the official repositories, nor on any PPA, nor has any interest of providing a repository. In this case the only option is download + dpkg
.
Or maybe, you customized your system in some non-standard way, so you need to install and manage the package manually as apt
gets "confused" and cannot resolve conflicts/dependencies/etc...
add a comment |
A .deb
file is a package containing all the needed files for the application,
plus some utility files used for installation/removal, etc.
These are installed via dpkg
, the "Debian Package Manager".
apt-get
is a frontend to dpkg
(as is apt
, aptitute
, ...). Simply said apt
downloads the .deb
from known repository sources and calls dpkg
under the hood to execute actions on them (i.e. install, remove, purge, etc.).
But it's not all! The apt
family do a lot of extra things for you.
- It make sure the repository cache is up to date (
apt update
), so it will always install the "latest" version available for your OS. - It automatically resolves dependencies for you, so you won't have to look around the Internet for the correct
.deb
files to install (and their correct version) to satisfy the dependencies of the.deb
you want to install. - The same dependency resolution helps you when you want to remove a package.
apt
suggests you which other packages were installed as dependencies (or you can instruct it to remove them automatically).
Usually, you'll want to use apt
, as it keeps (or at least it tries hard!) your system clean and functional. There are cases where the "download .deb
file manually and install via dpkg
is preferable.
Obvioulsy, if the package maintainer does not publish it on the official repositories, nor on any PPA, nor has any interest of providing a repository. In this case the only option is download + dpkg
.
Or maybe, you customized your system in some non-standard way, so you need to install and manage the package manually as apt
gets "confused" and cannot resolve conflicts/dependencies/etc...
add a comment |
A .deb
file is a package containing all the needed files for the application,
plus some utility files used for installation/removal, etc.
These are installed via dpkg
, the "Debian Package Manager".
apt-get
is a frontend to dpkg
(as is apt
, aptitute
, ...). Simply said apt
downloads the .deb
from known repository sources and calls dpkg
under the hood to execute actions on them (i.e. install, remove, purge, etc.).
But it's not all! The apt
family do a lot of extra things for you.
- It make sure the repository cache is up to date (
apt update
), so it will always install the "latest" version available for your OS. - It automatically resolves dependencies for you, so you won't have to look around the Internet for the correct
.deb
files to install (and their correct version) to satisfy the dependencies of the.deb
you want to install. - The same dependency resolution helps you when you want to remove a package.
apt
suggests you which other packages were installed as dependencies (or you can instruct it to remove them automatically).
Usually, you'll want to use apt
, as it keeps (or at least it tries hard!) your system clean and functional. There are cases where the "download .deb
file manually and install via dpkg
is preferable.
Obvioulsy, if the package maintainer does not publish it on the official repositories, nor on any PPA, nor has any interest of providing a repository. In this case the only option is download + dpkg
.
Or maybe, you customized your system in some non-standard way, so you need to install and manage the package manually as apt
gets "confused" and cannot resolve conflicts/dependencies/etc...
A .deb
file is a package containing all the needed files for the application,
plus some utility files used for installation/removal, etc.
These are installed via dpkg
, the "Debian Package Manager".
apt-get
is a frontend to dpkg
(as is apt
, aptitute
, ...). Simply said apt
downloads the .deb
from known repository sources and calls dpkg
under the hood to execute actions on them (i.e. install, remove, purge, etc.).
But it's not all! The apt
family do a lot of extra things for you.
- It make sure the repository cache is up to date (
apt update
), so it will always install the "latest" version available for your OS. - It automatically resolves dependencies for you, so you won't have to look around the Internet for the correct
.deb
files to install (and their correct version) to satisfy the dependencies of the.deb
you want to install. - The same dependency resolution helps you when you want to remove a package.
apt
suggests you which other packages were installed as dependencies (or you can instruct it to remove them automatically).
Usually, you'll want to use apt
, as it keeps (or at least it tries hard!) your system clean and functional. There are cases where the "download .deb
file manually and install via dpkg
is preferable.
Obvioulsy, if the package maintainer does not publish it on the official repositories, nor on any PPA, nor has any interest of providing a repository. In this case the only option is download + dpkg
.
Or maybe, you customized your system in some non-standard way, so you need to install and manage the package manually as apt
gets "confused" and cannot resolve conflicts/dependencies/etc...
edited Jan 24 at 17:07
answered Jan 24 at 16:58
Mr ShunzMr Shunz
2,49121922
2,49121922
add a comment |
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%2f1112556%2fwhat-is-the-difference-between-installing-from-a-downloaded-deb-file-and-from-t%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