Where, and how, do I install multiple packages stored in a local directory? [duplicate]












0















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?










share|improve this question













marked as duplicate by Melebius, karel, Fabby, muru command-line
Users with the  command-line badge can single-handedly close command-line questions as duplicates and reopen them as needed.

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 do sudo apt-get install *.deb in that folder where they all are!
    – George Udosen
    Nov 29 at 9:57


















0















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?










share|improve this question













marked as duplicate by Melebius, karel, Fabby, muru command-line
Users with the  command-line badge can single-handedly close command-line questions as duplicates and reopen them as needed.

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 do sudo apt-get install *.deb in that folder where they all are!
    – George Udosen
    Nov 29 at 9:57
















0












0








0








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?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 29 at 9:52









Basper82

32




32




marked as duplicate by Melebius, karel, Fabby, muru command-line
Users with the  command-line badge can single-handedly close command-line questions as duplicates and reopen them as needed.

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 command-line
Users with the  command-line badge can single-handedly close command-line questions as duplicates and reopen them as needed.

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 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


















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












2 Answers
2






active

oldest

votes


















1














To download them all:




  1. Create a text file with their names, one on each line.


  2. Create a folder to store these package files:



    mkdir ~/packages_store



  3. 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, then sudo ./myscript.sh /path/to/text_with_packagenames




  4. To install all:




    1. Change into that folder cd ~/packages_store


    2. Run installer:



      sudo apt-get install *.deb





Hopefully this is what you’re looking for!






share|improve this answer























  • 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










  • 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



















0














Here is the repository of Ubuntu Packages.
Search desired package with ubuntu flavour and install it with apt procedure.






share|improve this answer





















  • 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


















2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














To download them all:




  1. Create a text file with their names, one on each line.


  2. Create a folder to store these package files:



    mkdir ~/packages_store



  3. 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, then sudo ./myscript.sh /path/to/text_with_packagenames




  4. To install all:




    1. Change into that folder cd ~/packages_store


    2. Run installer:



      sudo apt-get install *.deb





Hopefully this is what you’re looking for!






share|improve this answer























  • 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










  • 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
















1














To download them all:




  1. Create a text file with their names, one on each line.


  2. Create a folder to store these package files:



    mkdir ~/packages_store



  3. 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, then sudo ./myscript.sh /path/to/text_with_packagenames




  4. To install all:




    1. Change into that folder cd ~/packages_store


    2. Run installer:



      sudo apt-get install *.deb





Hopefully this is what you’re looking for!






share|improve this answer























  • 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










  • 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














1












1








1






To download them all:




  1. Create a text file with their names, one on each line.


  2. Create a folder to store these package files:



    mkdir ~/packages_store



  3. 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, then sudo ./myscript.sh /path/to/text_with_packagenames




  4. To install all:




    1. Change into that folder cd ~/packages_store


    2. Run installer:



      sudo apt-get install *.deb





Hopefully this is what you’re looking for!






share|improve this answer














To download them all:




  1. Create a text file with their names, one on each line.


  2. Create a folder to store these package files:



    mkdir ~/packages_store



  3. 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, then sudo ./myscript.sh /path/to/text_with_packagenames




  4. To install all:




    1. Change into that folder cd ~/packages_store


    2. Run installer:



      sudo apt-get install *.deb





Hopefully this is what you’re looking for!







share|improve this answer














share|improve this answer



share|improve this answer








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 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










  • 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










  • 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













0














Here is the repository of Ubuntu Packages.
Search desired package with ubuntu flavour and install it with apt procedure.






share|improve this answer





















  • 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
















0














Here is the repository of Ubuntu Packages.
Search desired package with ubuntu flavour and install it with apt procedure.






share|improve this answer





















  • 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














0












0








0






Here is the repository of Ubuntu Packages.
Search desired package with ubuntu flavour and install it with apt procedure.






share|improve this answer












Here is the repository of Ubuntu Packages.
Search desired package with ubuntu flavour and install it with apt procedure.







share|improve this answer












share|improve this answer



share|improve this answer










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


















  • 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



Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?