How to install local .deb packages with apt-get
Is there a way to install packages store on your HD with apt-get, like apt-get install ./package.deb
?
If not, how to handle the dependencies in a very very easy way?
linux debian packages apt aptitude
add a comment |
Is there a way to install packages store on your HD with apt-get, like apt-get install ./package.deb
?
If not, how to handle the dependencies in a very very easy way?
linux debian packages apt aptitude
add a comment |
Is there a way to install packages store on your HD with apt-get, like apt-get install ./package.deb
?
If not, how to handle the dependencies in a very very easy way?
linux debian packages apt aptitude
Is there a way to install packages store on your HD with apt-get, like apt-get install ./package.deb
?
If not, how to handle the dependencies in a very very easy way?
linux debian packages apt aptitude
linux debian packages apt aptitude
edited May 16 at 8:53
Melebius
6131824
6131824
asked Oct 7 '10 at 8:02
Louis
1,1642914
1,1642914
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
usually I do dpkg -i <deb file>
, it'll fail saying it needs dependencies. After that when you do an apt-get update
it'll say at the end something like "dependencies are ready to install" I think it then advises to use apt-get install -f
.
Once that's done, I use dpkg -i
again.
Worked fine for me last few years.
edit: looking a bit further, apparently a tool called gdebi
can do this as gdebi [deb file]
.
1
Thanks i did the same by "error" dpkg then apt-get install -f and it worked.
– Louis
Oct 7 '10 at 8:22
2
gdebi
is worked for me, and simplest I have seen so far.
– ctrl-alt-delor
Aug 18 '16 at 15:00
add a comment |
Sirex has it more or less correct, but his answer isn't clear. I just solved this, so here's what I did:
sudo dpkg -i /path/to/filename.deb
If this fails with a message about the package depending on something that isn't installed, you can probably fix it if you run
sudo apt-get -f install
This will install the dependencies (assuming they're available in the repos your system knows about) AND the package you were originally requesting to install ('f' is the 'fix' option and 'y' is the 'assume yes to prompts' or 'don't ask me if it's ok, just install it already' option -- very useful for scripted silent installs). On the system I was on, there was no need to run dpkg again (Ubuntu lucid 10.04).
I found it interesting that if you leave off the -f when you run sudo apt-get install
, it will list your package as not being configured due to an unresolved dependency as well as helpfully suggesting: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Edit:
If you want install without having to answer 'y' to all of the questions, you can add the y
modifier as I originally included: sudo apt-get -fy install
. However, a commenter pointed out that apt will sometimes suggest that you uninstall your entire desktop environment. I was doing this work in a VM and didn't have that concern, but this post has been updated to reflect being a bit more careful.
If I have all the package files already in a directory, is there a way to tell apt that this is a new repository, so i won't have to force it installing anything without dependencies?
– Berry Tsakala
Mar 4 '13 at 13:33
2
I'm sorry, but I don't know. I'd suggest asking that as another top level question.
– Akrikos
Mar 12 '13 at 18:56
Crazy strange that this is required. On raspian, this will require sudo (for both dpkg and apt-get):sudo dpkg -i mypackages.deb
, etc.
– Brent Faust
Aug 16 '13 at 0:53
@Rubistro root access it required on all systems. I guess the answers assumed that that commands are executed by root (e.g. from an interactive root shell, or a script which executes as root).
– Amos Shapira
Jan 5 '14 at 19:34
2
For you own good, do not add the-y
option. It is quite common for apt to suggest, for example, uninstalling your whole desktop environment if you try this with the wrong package at the wrong time (at least on Debian).
– oseiskar
Sep 5 '14 at 14:39
add a comment |
You can also install .deb file using gdebi.Run the below commands to install gdebi,
sudo apt-get install gdebi-core
Install .deb packages with gdebi,
sudo gdebi /path/to/filename.deb
It also fix dependencies.
4
Note that gdebi only takes a single argument and silently drops the rest on the floor. This means if you're installing multiple debs at the same time (perhaps because they depend on each other) you'll need to carefully craftgdebi
commands which allow them to install. imo this half defeats the purpose of gdebi, but you may still find it useful for a single file
– Anthony Sottile
Jul 15 '15 at 2:58
@Anthony thenfind -name *.deb -exec gdebi {} ;
– jjmontes
Jul 25 '15 at 16:40
3
@jjmontes that'll only work if the interdependencies are in alphabetical order which I'd wager is pretty rare
– Anthony Sottile
Jul 26 '15 at 15:34
I followed this freesoftwaremagazine.com/articles/… (bug the local repo had to be at /var/www/html/debs) and synaptic kept trying to download from remote even w/o internet, so gdebi worked great with the local repo! also, the .deb files had to bechmod +r *.deb
– Aquarius Power
Jul 13 at 23:36
add a comment |
Yes, the command you proposed is correct.
sudo apt-get install ./package.deb
will install the package you got from another source than APT and same time use APT capabilities to resolve its dependencies automatically. Unfortunately, this apt-get
feature is not documented in the man page.
See https://askubuntu.com/a/769542/250300 for details.
2
This should have been the accepted answer.
– Peter
May 16 at 6:57
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f196864%2fhow-to-install-local-deb-packages-with-apt-get%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
usually I do dpkg -i <deb file>
, it'll fail saying it needs dependencies. After that when you do an apt-get update
it'll say at the end something like "dependencies are ready to install" I think it then advises to use apt-get install -f
.
Once that's done, I use dpkg -i
again.
Worked fine for me last few years.
edit: looking a bit further, apparently a tool called gdebi
can do this as gdebi [deb file]
.
1
Thanks i did the same by "error" dpkg then apt-get install -f and it worked.
– Louis
Oct 7 '10 at 8:22
2
gdebi
is worked for me, and simplest I have seen so far.
– ctrl-alt-delor
Aug 18 '16 at 15:00
add a comment |
usually I do dpkg -i <deb file>
, it'll fail saying it needs dependencies. After that when you do an apt-get update
it'll say at the end something like "dependencies are ready to install" I think it then advises to use apt-get install -f
.
Once that's done, I use dpkg -i
again.
Worked fine for me last few years.
edit: looking a bit further, apparently a tool called gdebi
can do this as gdebi [deb file]
.
1
Thanks i did the same by "error" dpkg then apt-get install -f and it worked.
– Louis
Oct 7 '10 at 8:22
2
gdebi
is worked for me, and simplest I have seen so far.
– ctrl-alt-delor
Aug 18 '16 at 15:00
add a comment |
usually I do dpkg -i <deb file>
, it'll fail saying it needs dependencies. After that when you do an apt-get update
it'll say at the end something like "dependencies are ready to install" I think it then advises to use apt-get install -f
.
Once that's done, I use dpkg -i
again.
Worked fine for me last few years.
edit: looking a bit further, apparently a tool called gdebi
can do this as gdebi [deb file]
.
usually I do dpkg -i <deb file>
, it'll fail saying it needs dependencies. After that when you do an apt-get update
it'll say at the end something like "dependencies are ready to install" I think it then advises to use apt-get install -f
.
Once that's done, I use dpkg -i
again.
Worked fine for me last few years.
edit: looking a bit further, apparently a tool called gdebi
can do this as gdebi [deb file]
.
edited Jul 17 '14 at 1:45
answered Oct 7 '10 at 8:19
Sirex
9,68343252
9,68343252
1
Thanks i did the same by "error" dpkg then apt-get install -f and it worked.
– Louis
Oct 7 '10 at 8:22
2
gdebi
is worked for me, and simplest I have seen so far.
– ctrl-alt-delor
Aug 18 '16 at 15:00
add a comment |
1
Thanks i did the same by "error" dpkg then apt-get install -f and it worked.
– Louis
Oct 7 '10 at 8:22
2
gdebi
is worked for me, and simplest I have seen so far.
– ctrl-alt-delor
Aug 18 '16 at 15:00
1
1
Thanks i did the same by "error" dpkg then apt-get install -f and it worked.
– Louis
Oct 7 '10 at 8:22
Thanks i did the same by "error" dpkg then apt-get install -f and it worked.
– Louis
Oct 7 '10 at 8:22
2
2
gdebi
is worked for me, and simplest I have seen so far.– ctrl-alt-delor
Aug 18 '16 at 15:00
gdebi
is worked for me, and simplest I have seen so far.– ctrl-alt-delor
Aug 18 '16 at 15:00
add a comment |
Sirex has it more or less correct, but his answer isn't clear. I just solved this, so here's what I did:
sudo dpkg -i /path/to/filename.deb
If this fails with a message about the package depending on something that isn't installed, you can probably fix it if you run
sudo apt-get -f install
This will install the dependencies (assuming they're available in the repos your system knows about) AND the package you were originally requesting to install ('f' is the 'fix' option and 'y' is the 'assume yes to prompts' or 'don't ask me if it's ok, just install it already' option -- very useful for scripted silent installs). On the system I was on, there was no need to run dpkg again (Ubuntu lucid 10.04).
I found it interesting that if you leave off the -f when you run sudo apt-get install
, it will list your package as not being configured due to an unresolved dependency as well as helpfully suggesting: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Edit:
If you want install without having to answer 'y' to all of the questions, you can add the y
modifier as I originally included: sudo apt-get -fy install
. However, a commenter pointed out that apt will sometimes suggest that you uninstall your entire desktop environment. I was doing this work in a VM and didn't have that concern, but this post has been updated to reflect being a bit more careful.
If I have all the package files already in a directory, is there a way to tell apt that this is a new repository, so i won't have to force it installing anything without dependencies?
– Berry Tsakala
Mar 4 '13 at 13:33
2
I'm sorry, but I don't know. I'd suggest asking that as another top level question.
– Akrikos
Mar 12 '13 at 18:56
Crazy strange that this is required. On raspian, this will require sudo (for both dpkg and apt-get):sudo dpkg -i mypackages.deb
, etc.
– Brent Faust
Aug 16 '13 at 0:53
@Rubistro root access it required on all systems. I guess the answers assumed that that commands are executed by root (e.g. from an interactive root shell, or a script which executes as root).
– Amos Shapira
Jan 5 '14 at 19:34
2
For you own good, do not add the-y
option. It is quite common for apt to suggest, for example, uninstalling your whole desktop environment if you try this with the wrong package at the wrong time (at least on Debian).
– oseiskar
Sep 5 '14 at 14:39
add a comment |
Sirex has it more or less correct, but his answer isn't clear. I just solved this, so here's what I did:
sudo dpkg -i /path/to/filename.deb
If this fails with a message about the package depending on something that isn't installed, you can probably fix it if you run
sudo apt-get -f install
This will install the dependencies (assuming they're available in the repos your system knows about) AND the package you were originally requesting to install ('f' is the 'fix' option and 'y' is the 'assume yes to prompts' or 'don't ask me if it's ok, just install it already' option -- very useful for scripted silent installs). On the system I was on, there was no need to run dpkg again (Ubuntu lucid 10.04).
I found it interesting that if you leave off the -f when you run sudo apt-get install
, it will list your package as not being configured due to an unresolved dependency as well as helpfully suggesting: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Edit:
If you want install without having to answer 'y' to all of the questions, you can add the y
modifier as I originally included: sudo apt-get -fy install
. However, a commenter pointed out that apt will sometimes suggest that you uninstall your entire desktop environment. I was doing this work in a VM and didn't have that concern, but this post has been updated to reflect being a bit more careful.
If I have all the package files already in a directory, is there a way to tell apt that this is a new repository, so i won't have to force it installing anything without dependencies?
– Berry Tsakala
Mar 4 '13 at 13:33
2
I'm sorry, but I don't know. I'd suggest asking that as another top level question.
– Akrikos
Mar 12 '13 at 18:56
Crazy strange that this is required. On raspian, this will require sudo (for both dpkg and apt-get):sudo dpkg -i mypackages.deb
, etc.
– Brent Faust
Aug 16 '13 at 0:53
@Rubistro root access it required on all systems. I guess the answers assumed that that commands are executed by root (e.g. from an interactive root shell, or a script which executes as root).
– Amos Shapira
Jan 5 '14 at 19:34
2
For you own good, do not add the-y
option. It is quite common for apt to suggest, for example, uninstalling your whole desktop environment if you try this with the wrong package at the wrong time (at least on Debian).
– oseiskar
Sep 5 '14 at 14:39
add a comment |
Sirex has it more or less correct, but his answer isn't clear. I just solved this, so here's what I did:
sudo dpkg -i /path/to/filename.deb
If this fails with a message about the package depending on something that isn't installed, you can probably fix it if you run
sudo apt-get -f install
This will install the dependencies (assuming they're available in the repos your system knows about) AND the package you were originally requesting to install ('f' is the 'fix' option and 'y' is the 'assume yes to prompts' or 'don't ask me if it's ok, just install it already' option -- very useful for scripted silent installs). On the system I was on, there was no need to run dpkg again (Ubuntu lucid 10.04).
I found it interesting that if you leave off the -f when you run sudo apt-get install
, it will list your package as not being configured due to an unresolved dependency as well as helpfully suggesting: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Edit:
If you want install without having to answer 'y' to all of the questions, you can add the y
modifier as I originally included: sudo apt-get -fy install
. However, a commenter pointed out that apt will sometimes suggest that you uninstall your entire desktop environment. I was doing this work in a VM and didn't have that concern, but this post has been updated to reflect being a bit more careful.
Sirex has it more or less correct, but his answer isn't clear. I just solved this, so here's what I did:
sudo dpkg -i /path/to/filename.deb
If this fails with a message about the package depending on something that isn't installed, you can probably fix it if you run
sudo apt-get -f install
This will install the dependencies (assuming they're available in the repos your system knows about) AND the package you were originally requesting to install ('f' is the 'fix' option and 'y' is the 'assume yes to prompts' or 'don't ask me if it's ok, just install it already' option -- very useful for scripted silent installs). On the system I was on, there was no need to run dpkg again (Ubuntu lucid 10.04).
I found it interesting that if you leave off the -f when you run sudo apt-get install
, it will list your package as not being configured due to an unresolved dependency as well as helpfully suggesting: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Edit:
If you want install without having to answer 'y' to all of the questions, you can add the y
modifier as I originally included: sudo apt-get -fy install
. However, a commenter pointed out that apt will sometimes suggest that you uninstall your entire desktop environment. I was doing this work in a VM and didn't have that concern, but this post has been updated to reflect being a bit more careful.
edited Sep 8 '14 at 18:18
answered Jan 16 '13 at 20:21
Akrikos
65155
65155
If I have all the package files already in a directory, is there a way to tell apt that this is a new repository, so i won't have to force it installing anything without dependencies?
– Berry Tsakala
Mar 4 '13 at 13:33
2
I'm sorry, but I don't know. I'd suggest asking that as another top level question.
– Akrikos
Mar 12 '13 at 18:56
Crazy strange that this is required. On raspian, this will require sudo (for both dpkg and apt-get):sudo dpkg -i mypackages.deb
, etc.
– Brent Faust
Aug 16 '13 at 0:53
@Rubistro root access it required on all systems. I guess the answers assumed that that commands are executed by root (e.g. from an interactive root shell, or a script which executes as root).
– Amos Shapira
Jan 5 '14 at 19:34
2
For you own good, do not add the-y
option. It is quite common for apt to suggest, for example, uninstalling your whole desktop environment if you try this with the wrong package at the wrong time (at least on Debian).
– oseiskar
Sep 5 '14 at 14:39
add a comment |
If I have all the package files already in a directory, is there a way to tell apt that this is a new repository, so i won't have to force it installing anything without dependencies?
– Berry Tsakala
Mar 4 '13 at 13:33
2
I'm sorry, but I don't know. I'd suggest asking that as another top level question.
– Akrikos
Mar 12 '13 at 18:56
Crazy strange that this is required. On raspian, this will require sudo (for both dpkg and apt-get):sudo dpkg -i mypackages.deb
, etc.
– Brent Faust
Aug 16 '13 at 0:53
@Rubistro root access it required on all systems. I guess the answers assumed that that commands are executed by root (e.g. from an interactive root shell, or a script which executes as root).
– Amos Shapira
Jan 5 '14 at 19:34
2
For you own good, do not add the-y
option. It is quite common for apt to suggest, for example, uninstalling your whole desktop environment if you try this with the wrong package at the wrong time (at least on Debian).
– oseiskar
Sep 5 '14 at 14:39
If I have all the package files already in a directory, is there a way to tell apt that this is a new repository, so i won't have to force it installing anything without dependencies?
– Berry Tsakala
Mar 4 '13 at 13:33
If I have all the package files already in a directory, is there a way to tell apt that this is a new repository, so i won't have to force it installing anything without dependencies?
– Berry Tsakala
Mar 4 '13 at 13:33
2
2
I'm sorry, but I don't know. I'd suggest asking that as another top level question.
– Akrikos
Mar 12 '13 at 18:56
I'm sorry, but I don't know. I'd suggest asking that as another top level question.
– Akrikos
Mar 12 '13 at 18:56
Crazy strange that this is required. On raspian, this will require sudo (for both dpkg and apt-get):
sudo dpkg -i mypackages.deb
, etc.– Brent Faust
Aug 16 '13 at 0:53
Crazy strange that this is required. On raspian, this will require sudo (for both dpkg and apt-get):
sudo dpkg -i mypackages.deb
, etc.– Brent Faust
Aug 16 '13 at 0:53
@Rubistro root access it required on all systems. I guess the answers assumed that that commands are executed by root (e.g. from an interactive root shell, or a script which executes as root).
– Amos Shapira
Jan 5 '14 at 19:34
@Rubistro root access it required on all systems. I guess the answers assumed that that commands are executed by root (e.g. from an interactive root shell, or a script which executes as root).
– Amos Shapira
Jan 5 '14 at 19:34
2
2
For you own good, do not add the
-y
option. It is quite common for apt to suggest, for example, uninstalling your whole desktop environment if you try this with the wrong package at the wrong time (at least on Debian).– oseiskar
Sep 5 '14 at 14:39
For you own good, do not add the
-y
option. It is quite common for apt to suggest, for example, uninstalling your whole desktop environment if you try this with the wrong package at the wrong time (at least on Debian).– oseiskar
Sep 5 '14 at 14:39
add a comment |
You can also install .deb file using gdebi.Run the below commands to install gdebi,
sudo apt-get install gdebi-core
Install .deb packages with gdebi,
sudo gdebi /path/to/filename.deb
It also fix dependencies.
4
Note that gdebi only takes a single argument and silently drops the rest on the floor. This means if you're installing multiple debs at the same time (perhaps because they depend on each other) you'll need to carefully craftgdebi
commands which allow them to install. imo this half defeats the purpose of gdebi, but you may still find it useful for a single file
– Anthony Sottile
Jul 15 '15 at 2:58
@Anthony thenfind -name *.deb -exec gdebi {} ;
– jjmontes
Jul 25 '15 at 16:40
3
@jjmontes that'll only work if the interdependencies are in alphabetical order which I'd wager is pretty rare
– Anthony Sottile
Jul 26 '15 at 15:34
I followed this freesoftwaremagazine.com/articles/… (bug the local repo had to be at /var/www/html/debs) and synaptic kept trying to download from remote even w/o internet, so gdebi worked great with the local repo! also, the .deb files had to bechmod +r *.deb
– Aquarius Power
Jul 13 at 23:36
add a comment |
You can also install .deb file using gdebi.Run the below commands to install gdebi,
sudo apt-get install gdebi-core
Install .deb packages with gdebi,
sudo gdebi /path/to/filename.deb
It also fix dependencies.
4
Note that gdebi only takes a single argument and silently drops the rest on the floor. This means if you're installing multiple debs at the same time (perhaps because they depend on each other) you'll need to carefully craftgdebi
commands which allow them to install. imo this half defeats the purpose of gdebi, but you may still find it useful for a single file
– Anthony Sottile
Jul 15 '15 at 2:58
@Anthony thenfind -name *.deb -exec gdebi {} ;
– jjmontes
Jul 25 '15 at 16:40
3
@jjmontes that'll only work if the interdependencies are in alphabetical order which I'd wager is pretty rare
– Anthony Sottile
Jul 26 '15 at 15:34
I followed this freesoftwaremagazine.com/articles/… (bug the local repo had to be at /var/www/html/debs) and synaptic kept trying to download from remote even w/o internet, so gdebi worked great with the local repo! also, the .deb files had to bechmod +r *.deb
– Aquarius Power
Jul 13 at 23:36
add a comment |
You can also install .deb file using gdebi.Run the below commands to install gdebi,
sudo apt-get install gdebi-core
Install .deb packages with gdebi,
sudo gdebi /path/to/filename.deb
It also fix dependencies.
You can also install .deb file using gdebi.Run the below commands to install gdebi,
sudo apt-get install gdebi-core
Install .deb packages with gdebi,
sudo gdebi /path/to/filename.deb
It also fix dependencies.
answered Jan 7 '14 at 17:58
Avinash Raj
6771714
6771714
4
Note that gdebi only takes a single argument and silently drops the rest on the floor. This means if you're installing multiple debs at the same time (perhaps because they depend on each other) you'll need to carefully craftgdebi
commands which allow them to install. imo this half defeats the purpose of gdebi, but you may still find it useful for a single file
– Anthony Sottile
Jul 15 '15 at 2:58
@Anthony thenfind -name *.deb -exec gdebi {} ;
– jjmontes
Jul 25 '15 at 16:40
3
@jjmontes that'll only work if the interdependencies are in alphabetical order which I'd wager is pretty rare
– Anthony Sottile
Jul 26 '15 at 15:34
I followed this freesoftwaremagazine.com/articles/… (bug the local repo had to be at /var/www/html/debs) and synaptic kept trying to download from remote even w/o internet, so gdebi worked great with the local repo! also, the .deb files had to bechmod +r *.deb
– Aquarius Power
Jul 13 at 23:36
add a comment |
4
Note that gdebi only takes a single argument and silently drops the rest on the floor. This means if you're installing multiple debs at the same time (perhaps because they depend on each other) you'll need to carefully craftgdebi
commands which allow them to install. imo this half defeats the purpose of gdebi, but you may still find it useful for a single file
– Anthony Sottile
Jul 15 '15 at 2:58
@Anthony thenfind -name *.deb -exec gdebi {} ;
– jjmontes
Jul 25 '15 at 16:40
3
@jjmontes that'll only work if the interdependencies are in alphabetical order which I'd wager is pretty rare
– Anthony Sottile
Jul 26 '15 at 15:34
I followed this freesoftwaremagazine.com/articles/… (bug the local repo had to be at /var/www/html/debs) and synaptic kept trying to download from remote even w/o internet, so gdebi worked great with the local repo! also, the .deb files had to bechmod +r *.deb
– Aquarius Power
Jul 13 at 23:36
4
4
Note that gdebi only takes a single argument and silently drops the rest on the floor. This means if you're installing multiple debs at the same time (perhaps because they depend on each other) you'll need to carefully craft
gdebi
commands which allow them to install. imo this half defeats the purpose of gdebi, but you may still find it useful for a single file– Anthony Sottile
Jul 15 '15 at 2:58
Note that gdebi only takes a single argument and silently drops the rest on the floor. This means if you're installing multiple debs at the same time (perhaps because they depend on each other) you'll need to carefully craft
gdebi
commands which allow them to install. imo this half defeats the purpose of gdebi, but you may still find it useful for a single file– Anthony Sottile
Jul 15 '15 at 2:58
@Anthony then
find -name *.deb -exec gdebi {} ;
– jjmontes
Jul 25 '15 at 16:40
@Anthony then
find -name *.deb -exec gdebi {} ;
– jjmontes
Jul 25 '15 at 16:40
3
3
@jjmontes that'll only work if the interdependencies are in alphabetical order which I'd wager is pretty rare
– Anthony Sottile
Jul 26 '15 at 15:34
@jjmontes that'll only work if the interdependencies are in alphabetical order which I'd wager is pretty rare
– Anthony Sottile
Jul 26 '15 at 15:34
I followed this freesoftwaremagazine.com/articles/… (bug the local repo had to be at /var/www/html/debs) and synaptic kept trying to download from remote even w/o internet, so gdebi worked great with the local repo! also, the .deb files had to be
chmod +r *.deb
– Aquarius Power
Jul 13 at 23:36
I followed this freesoftwaremagazine.com/articles/… (bug the local repo had to be at /var/www/html/debs) and synaptic kept trying to download from remote even w/o internet, so gdebi worked great with the local repo! also, the .deb files had to be
chmod +r *.deb
– Aquarius Power
Jul 13 at 23:36
add a comment |
Yes, the command you proposed is correct.
sudo apt-get install ./package.deb
will install the package you got from another source than APT and same time use APT capabilities to resolve its dependencies automatically. Unfortunately, this apt-get
feature is not documented in the man page.
See https://askubuntu.com/a/769542/250300 for details.
2
This should have been the accepted answer.
– Peter
May 16 at 6:57
add a comment |
Yes, the command you proposed is correct.
sudo apt-get install ./package.deb
will install the package you got from another source than APT and same time use APT capabilities to resolve its dependencies automatically. Unfortunately, this apt-get
feature is not documented in the man page.
See https://askubuntu.com/a/769542/250300 for details.
2
This should have been the accepted answer.
– Peter
May 16 at 6:57
add a comment |
Yes, the command you proposed is correct.
sudo apt-get install ./package.deb
will install the package you got from another source than APT and same time use APT capabilities to resolve its dependencies automatically. Unfortunately, this apt-get
feature is not documented in the man page.
See https://askubuntu.com/a/769542/250300 for details.
Yes, the command you proposed is correct.
sudo apt-get install ./package.deb
will install the package you got from another source than APT and same time use APT capabilities to resolve its dependencies automatically. Unfortunately, this apt-get
feature is not documented in the man page.
See https://askubuntu.com/a/769542/250300 for details.
edited Oct 26 '17 at 4:38
answered Aug 26 '17 at 7:13
Melebius
6131824
6131824
2
This should have been the accepted answer.
– Peter
May 16 at 6:57
add a comment |
2
This should have been the accepted answer.
– Peter
May 16 at 6:57
2
2
This should have been the accepted answer.
– Peter
May 16 at 6:57
This should have been the accepted answer.
– Peter
May 16 at 6:57
add a comment |
Thanks for contributing an answer to Super User!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2fsuperuser.com%2fquestions%2f196864%2fhow-to-install-local-deb-packages-with-apt-get%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