Where, and how, do I install multiple packages stored in a local directory? [duplicate]
This question already has an answer here:
How do I install a .deb file via the command line?
9 answers
How can I install software or packages without Internet (offline)?
24 answers
I've found several posts about mass installing Linux packages with one command here, here, and here.
Here's my situation. I'm in a 3rd-world country right now with limited internet access. I want to know if there's a way to download a bunch of packages, store them somewhere, and write a little bash script to mass install them.
Is there a website that has a repository where I can do a one-time download of these permanently instead of having to use a bunch of data doing "apt-get" every time I try out a fresh installation of a Linux distro?
After I download these is there a way I can easily install them all these deb or tar files by writing a little bash script?
command-line apt software-installation repository source-packages
marked as duplicate by Melebius, karel, Fabby, muru
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 30 at 5:14
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
How do I install a .deb file via the command line?
9 answers
How can I install software or packages without Internet (offline)?
24 answers
I've found several posts about mass installing Linux packages with one command here, here, and here.
Here's my situation. I'm in a 3rd-world country right now with limited internet access. I want to know if there's a way to download a bunch of packages, store them somewhere, and write a little bash script to mass install them.
Is there a website that has a repository where I can do a one-time download of these permanently instead of having to use a bunch of data doing "apt-get" every time I try out a fresh installation of a Linux distro?
After I download these is there a way I can easily install them all these deb or tar files by writing a little bash script?
command-line apt software-installation repository source-packages
marked as duplicate by Melebius, karel, Fabby, muru
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 30 at 5:14
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
sudo apt-get download <package_name>
will down the package but won't install so you could write a script to download all files in a text file with the names of the packages passed to that commad! Then to install them from some directory you put them into dosudo apt-get install *.deb
in that folder where they all are!
– George Udosen
Nov 29 at 9:57
add a comment |
This question already has an answer here:
How do I install a .deb file via the command line?
9 answers
How can I install software or packages without Internet (offline)?
24 answers
I've found several posts about mass installing Linux packages with one command here, here, and here.
Here's my situation. I'm in a 3rd-world country right now with limited internet access. I want to know if there's a way to download a bunch of packages, store them somewhere, and write a little bash script to mass install them.
Is there a website that has a repository where I can do a one-time download of these permanently instead of having to use a bunch of data doing "apt-get" every time I try out a fresh installation of a Linux distro?
After I download these is there a way I can easily install them all these deb or tar files by writing a little bash script?
command-line apt software-installation repository source-packages
This question already has an answer here:
How do I install a .deb file via the command line?
9 answers
How can I install software or packages without Internet (offline)?
24 answers
I've found several posts about mass installing Linux packages with one command here, here, and here.
Here's my situation. I'm in a 3rd-world country right now with limited internet access. I want to know if there's a way to download a bunch of packages, store them somewhere, and write a little bash script to mass install them.
Is there a website that has a repository where I can do a one-time download of these permanently instead of having to use a bunch of data doing "apt-get" every time I try out a fresh installation of a Linux distro?
After I download these is there a way I can easily install them all these deb or tar files by writing a little bash script?
This question already has an answer here:
How do I install a .deb file via the command line?
9 answers
How can I install software or packages without Internet (offline)?
24 answers
command-line apt software-installation repository source-packages
command-line apt software-installation repository source-packages
asked Nov 29 at 9:52
Basper82
32
32
marked as duplicate by Melebius, karel, Fabby, muru
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 30 at 5:14
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by Melebius, karel, Fabby, muru
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 30 at 5:14
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
sudo apt-get download <package_name>
will down the package but won't install so you could write a script to download all files in a text file with the names of the packages passed to that commad! Then to install them from some directory you put them into dosudo apt-get install *.deb
in that folder where they all are!
– George Udosen
Nov 29 at 9:57
add a comment |
sudo apt-get download <package_name>
will down the package but won't install so you could write a script to download all files in a text file with the names of the packages passed to that commad! Then to install them from some directory you put them into dosudo apt-get install *.deb
in that folder where they all are!
– George Udosen
Nov 29 at 9:57
sudo apt-get download <package_name>
will down the package but won't install so you could write a script to download all files in a text file with the names of the packages passed to that commad! Then to install them from some directory you put them into do sudo apt-get install *.deb
in that folder where they all are!– George Udosen
Nov 29 at 9:57
sudo apt-get download <package_name>
will down the package but won't install so you could write a script to download all files in a text file with the names of the packages passed to that commad! Then to install them from some directory you put them into do sudo apt-get install *.deb
in that folder where they all are!– George Udosen
Nov 29 at 9:57
add a comment |
2 Answers
2
active
oldest
votes
To download them all:
- Create a text file with their names, one on each line.
Create a folder to store these package files:
mkdir ~/packages_store
Read and download the
deb
file of each package on that list:
#!/usr/bin/env bash
# Change to the storage folder
# or exit if it doesn't exist
cd ~/packages_store || exit
# Remove blank lines first then read
# from file
sed '/^$/d' "$1" | while read -r line; do
apt-get download "$line"
done
- Usage:
chmod +x myscript.sh
, thensudo ./myscript.sh /path/to/text_with_packagenames
- Usage:
To install all:
- Change into that folder
cd ~/packages_store
Run installer:
sudo apt-get install *.deb
- Change into that folder
Hopefully this is what you’re looking for!
Could you explain what yoursed | while
block does? Wouldn’t< "$1" xargs apt-get download
do the work?
– Melebius
Nov 29 at 12:50
It removes spacd's that OP might add. And that works please add an answer using that method.
– George Udosen
Nov 29 at 13:04
And @melebius when dealing with an inexperienced it's best to take it slow break it down so they learn and improve at their own pace!
– George Udosen
Nov 29 at 13:28
Thank you for the script. Can you clarify how/where I can get these deb packages? I'm running Bodhi 4, and I think it's a Xenial Ubuntu, but when I go to the package list on this site nothing is there: packages.ubuntu.com/xenial/allpackages
– Basper82
Nov 29 at 14:51
add a comment |
Here is the repository of Ubuntu Packages.
Search desired package with ubuntu flavour and install it with apt procedure.
I don't understand what to do in that site. I'm running Bodhi 4, and I think it's a Xenial Ubuntu, but when I go to the package list nothing is there: packages.ubuntu.com/xenial/allpackages
– Basper82
Nov 29 at 14:50
Search for the desired package that you want from the list, like that I have searched for "Twitter Login in Gnome": packages.ubuntu.com/xenial/account-plugin-twitter. And then download (all) from your nearest server mirror location.
– Faraz Hashmi
Nov 30 at 14:03
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
To download them all:
- Create a text file with their names, one on each line.
Create a folder to store these package files:
mkdir ~/packages_store
Read and download the
deb
file of each package on that list:
#!/usr/bin/env bash
# Change to the storage folder
# or exit if it doesn't exist
cd ~/packages_store || exit
# Remove blank lines first then read
# from file
sed '/^$/d' "$1" | while read -r line; do
apt-get download "$line"
done
- Usage:
chmod +x myscript.sh
, thensudo ./myscript.sh /path/to/text_with_packagenames
- Usage:
To install all:
- Change into that folder
cd ~/packages_store
Run installer:
sudo apt-get install *.deb
- Change into that folder
Hopefully this is what you’re looking for!
Could you explain what yoursed | while
block does? Wouldn’t< "$1" xargs apt-get download
do the work?
– Melebius
Nov 29 at 12:50
It removes spacd's that OP might add. And that works please add an answer using that method.
– George Udosen
Nov 29 at 13:04
And @melebius when dealing with an inexperienced it's best to take it slow break it down so they learn and improve at their own pace!
– George Udosen
Nov 29 at 13:28
Thank you for the script. Can you clarify how/where I can get these deb packages? I'm running Bodhi 4, and I think it's a Xenial Ubuntu, but when I go to the package list on this site nothing is there: packages.ubuntu.com/xenial/allpackages
– Basper82
Nov 29 at 14:51
add a comment |
To download them all:
- Create a text file with their names, one on each line.
Create a folder to store these package files:
mkdir ~/packages_store
Read and download the
deb
file of each package on that list:
#!/usr/bin/env bash
# Change to the storage folder
# or exit if it doesn't exist
cd ~/packages_store || exit
# Remove blank lines first then read
# from file
sed '/^$/d' "$1" | while read -r line; do
apt-get download "$line"
done
- Usage:
chmod +x myscript.sh
, thensudo ./myscript.sh /path/to/text_with_packagenames
- Usage:
To install all:
- Change into that folder
cd ~/packages_store
Run installer:
sudo apt-get install *.deb
- Change into that folder
Hopefully this is what you’re looking for!
Could you explain what yoursed | while
block does? Wouldn’t< "$1" xargs apt-get download
do the work?
– Melebius
Nov 29 at 12:50
It removes spacd's that OP might add. And that works please add an answer using that method.
– George Udosen
Nov 29 at 13:04
And @melebius when dealing with an inexperienced it's best to take it slow break it down so they learn and improve at their own pace!
– George Udosen
Nov 29 at 13:28
Thank you for the script. Can you clarify how/where I can get these deb packages? I'm running Bodhi 4, and I think it's a Xenial Ubuntu, but when I go to the package list on this site nothing is there: packages.ubuntu.com/xenial/allpackages
– Basper82
Nov 29 at 14:51
add a comment |
To download them all:
- Create a text file with their names, one on each line.
Create a folder to store these package files:
mkdir ~/packages_store
Read and download the
deb
file of each package on that list:
#!/usr/bin/env bash
# Change to the storage folder
# or exit if it doesn't exist
cd ~/packages_store || exit
# Remove blank lines first then read
# from file
sed '/^$/d' "$1" | while read -r line; do
apt-get download "$line"
done
- Usage:
chmod +x myscript.sh
, thensudo ./myscript.sh /path/to/text_with_packagenames
- Usage:
To install all:
- Change into that folder
cd ~/packages_store
Run installer:
sudo apt-get install *.deb
- Change into that folder
Hopefully this is what you’re looking for!
To download them all:
- Create a text file with their names, one on each line.
Create a folder to store these package files:
mkdir ~/packages_store
Read and download the
deb
file of each package on that list:
#!/usr/bin/env bash
# Change to the storage folder
# or exit if it doesn't exist
cd ~/packages_store || exit
# Remove blank lines first then read
# from file
sed '/^$/d' "$1" | while read -r line; do
apt-get download "$line"
done
- Usage:
chmod +x myscript.sh
, thensudo ./myscript.sh /path/to/text_with_packagenames
- Usage:
To install all:
- Change into that folder
cd ~/packages_store
Run installer:
sudo apt-get install *.deb
- Change into that folder
Hopefully this is what you’re looking for!
edited Nov 29 at 12:49
Melebius
4,38251838
4,38251838
answered Nov 29 at 10:08
George Udosen
19.5k94266
19.5k94266
Could you explain what yoursed | while
block does? Wouldn’t< "$1" xargs apt-get download
do the work?
– Melebius
Nov 29 at 12:50
It removes spacd's that OP might add. And that works please add an answer using that method.
– George Udosen
Nov 29 at 13:04
And @melebius when dealing with an inexperienced it's best to take it slow break it down so they learn and improve at their own pace!
– George Udosen
Nov 29 at 13:28
Thank you for the script. Can you clarify how/where I can get these deb packages? I'm running Bodhi 4, and I think it's a Xenial Ubuntu, but when I go to the package list on this site nothing is there: packages.ubuntu.com/xenial/allpackages
– Basper82
Nov 29 at 14:51
add a comment |
Could you explain what yoursed | while
block does? Wouldn’t< "$1" xargs apt-get download
do the work?
– Melebius
Nov 29 at 12:50
It removes spacd's that OP might add. And that works please add an answer using that method.
– George Udosen
Nov 29 at 13:04
And @melebius when dealing with an inexperienced it's best to take it slow break it down so they learn and improve at their own pace!
– George Udosen
Nov 29 at 13:28
Thank you for the script. Can you clarify how/where I can get these deb packages? I'm running Bodhi 4, and I think it's a Xenial Ubuntu, but when I go to the package list on this site nothing is there: packages.ubuntu.com/xenial/allpackages
– Basper82
Nov 29 at 14:51
Could you explain what your
sed | while
block does? Wouldn’t < "$1" xargs apt-get download
do the work?– Melebius
Nov 29 at 12:50
Could you explain what your
sed | while
block does? Wouldn’t < "$1" xargs apt-get download
do the work?– Melebius
Nov 29 at 12:50
It removes spacd's that OP might add. And that works please add an answer using that method.
– George Udosen
Nov 29 at 13:04
It removes spacd's that OP might add. And that works please add an answer using that method.
– George Udosen
Nov 29 at 13:04
And @melebius when dealing with an inexperienced it's best to take it slow break it down so they learn and improve at their own pace!
– George Udosen
Nov 29 at 13:28
And @melebius when dealing with an inexperienced it's best to take it slow break it down so they learn and improve at their own pace!
– George Udosen
Nov 29 at 13:28
Thank you for the script. Can you clarify how/where I can get these deb packages? I'm running Bodhi 4, and I think it's a Xenial Ubuntu, but when I go to the package list on this site nothing is there: packages.ubuntu.com/xenial/allpackages
– Basper82
Nov 29 at 14:51
Thank you for the script. Can you clarify how/where I can get these deb packages? I'm running Bodhi 4, and I think it's a Xenial Ubuntu, but when I go to the package list on this site nothing is there: packages.ubuntu.com/xenial/allpackages
– Basper82
Nov 29 at 14:51
add a comment |
Here is the repository of Ubuntu Packages.
Search desired package with ubuntu flavour and install it with apt procedure.
I don't understand what to do in that site. I'm running Bodhi 4, and I think it's a Xenial Ubuntu, but when I go to the package list nothing is there: packages.ubuntu.com/xenial/allpackages
– Basper82
Nov 29 at 14:50
Search for the desired package that you want from the list, like that I have searched for "Twitter Login in Gnome": packages.ubuntu.com/xenial/account-plugin-twitter. And then download (all) from your nearest server mirror location.
– Faraz Hashmi
Nov 30 at 14:03
add a comment |
Here is the repository of Ubuntu Packages.
Search desired package with ubuntu flavour and install it with apt procedure.
I don't understand what to do in that site. I'm running Bodhi 4, and I think it's a Xenial Ubuntu, but when I go to the package list nothing is there: packages.ubuntu.com/xenial/allpackages
– Basper82
Nov 29 at 14:50
Search for the desired package that you want from the list, like that I have searched for "Twitter Login in Gnome": packages.ubuntu.com/xenial/account-plugin-twitter. And then download (all) from your nearest server mirror location.
– Faraz Hashmi
Nov 30 at 14:03
add a comment |
Here is the repository of Ubuntu Packages.
Search desired package with ubuntu flavour and install it with apt procedure.
Here is the repository of Ubuntu Packages.
Search desired package with ubuntu flavour and install it with apt procedure.
answered Nov 29 at 12:54
Faraz Hashmi
14
14
I don't understand what to do in that site. I'm running Bodhi 4, and I think it's a Xenial Ubuntu, but when I go to the package list nothing is there: packages.ubuntu.com/xenial/allpackages
– Basper82
Nov 29 at 14:50
Search for the desired package that you want from the list, like that I have searched for "Twitter Login in Gnome": packages.ubuntu.com/xenial/account-plugin-twitter. And then download (all) from your nearest server mirror location.
– Faraz Hashmi
Nov 30 at 14:03
add a comment |
I don't understand what to do in that site. I'm running Bodhi 4, and I think it's a Xenial Ubuntu, but when I go to the package list nothing is there: packages.ubuntu.com/xenial/allpackages
– Basper82
Nov 29 at 14:50
Search for the desired package that you want from the list, like that I have searched for "Twitter Login in Gnome": packages.ubuntu.com/xenial/account-plugin-twitter. And then download (all) from your nearest server mirror location.
– Faraz Hashmi
Nov 30 at 14:03
I don't understand what to do in that site. I'm running Bodhi 4, and I think it's a Xenial Ubuntu, but when I go to the package list nothing is there: packages.ubuntu.com/xenial/allpackages
– Basper82
Nov 29 at 14:50
I don't understand what to do in that site. I'm running Bodhi 4, and I think it's a Xenial Ubuntu, but when I go to the package list nothing is there: packages.ubuntu.com/xenial/allpackages
– Basper82
Nov 29 at 14:50
Search for the desired package that you want from the list, like that I have searched for "Twitter Login in Gnome": packages.ubuntu.com/xenial/account-plugin-twitter. And then download (all) from your nearest server mirror location.
– Faraz Hashmi
Nov 30 at 14:03
Search for the desired package that you want from the list, like that I have searched for "Twitter Login in Gnome": packages.ubuntu.com/xenial/account-plugin-twitter. And then download (all) from your nearest server mirror location.
– Faraz Hashmi
Nov 30 at 14:03
add a comment |
sudo apt-get download <package_name>
will down the package but won't install so you could write a script to download all files in a text file with the names of the packages passed to that commad! Then to install them from some directory you put them into dosudo apt-get install *.deb
in that folder where they all are!– George Udosen
Nov 29 at 9:57