Install many applications using one command
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
after reinstall system I need install applications again. Is it possible to make bash script or own package where cancan I add needed application and after reinstall system will I install them all using one command?
package-management
New contributor
add a comment |
after reinstall system I need install applications again. Is it possible to make bash script or own package where cancan I add needed application and after reinstall system will I install them all using one command?
package-management
New contributor
Related to Installing multiple packages at the same time
– pomsky
6 hours ago
add a comment |
after reinstall system I need install applications again. Is it possible to make bash script or own package where cancan I add needed application and after reinstall system will I install them all using one command?
package-management
New contributor
after reinstall system I need install applications again. Is it possible to make bash script or own package where cancan I add needed application and after reinstall system will I install them all using one command?
package-management
package-management
New contributor
New contributor
New contributor
asked 6 hours ago
BElluuBElluu
111
111
New contributor
New contributor
Related to Installing multiple packages at the same time
– pomsky
6 hours ago
add a comment |
Related to Installing multiple packages at the same time
– pomsky
6 hours ago
Related to Installing multiple packages at the same time
– pomsky
6 hours ago
Related to Installing multiple packages at the same time
– pomsky
6 hours ago
add a comment |
3 Answers
3
active
oldest
votes
You can use sudo apt install app1 app2 app3
type command in order to install multiple applications from the terminal or a bash script. Simply list all of the applications you wish to install in that command.
For example, if I wanted to install the applications gufw, libreoffice and hexchat, I would simply run the command sudo apt install gufw libreoffice hexchat
.
Make sure you use the correct package name for each one because if any one of the package names in the command are misspelled or incorrect, the entire command will fail.
add a comment |
To build a list of installed packages use:
sudo dpkg --get-selections > package.list
To restore the packages use:
sudo dpkg --set-selections < package.list
sudo apt-get dselect-upgrade
add a comment |
If the packages come from apt repositories , it is sufficient to provide a long list on command line
sudo apt install pkg1 pkg2 pkg3
If the list is large you may run into argument list too long error. In such case you can create a text file with list of packages one per line and run something like
sudo xargs --arg-file packages.txt apt install
Remember to update package cache before installing
sudo apt update
For deb
packages found locally on disk, you could use sudo dpkg -i ./*.deb
in current working directory or sudo dpkg -R -i debfiles/
to recursively traverse debfiles/
directory ( user-defined , can be replaced with another name). However, there are issues when those packages may need dependencies first, and the linked post provides a Python script to resolve that via topological sort.
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
});
}
});
BElluu is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1133594%2finstall-many-applications-using-one-command%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use sudo apt install app1 app2 app3
type command in order to install multiple applications from the terminal or a bash script. Simply list all of the applications you wish to install in that command.
For example, if I wanted to install the applications gufw, libreoffice and hexchat, I would simply run the command sudo apt install gufw libreoffice hexchat
.
Make sure you use the correct package name for each one because if any one of the package names in the command are misspelled or incorrect, the entire command will fail.
add a comment |
You can use sudo apt install app1 app2 app3
type command in order to install multiple applications from the terminal or a bash script. Simply list all of the applications you wish to install in that command.
For example, if I wanted to install the applications gufw, libreoffice and hexchat, I would simply run the command sudo apt install gufw libreoffice hexchat
.
Make sure you use the correct package name for each one because if any one of the package names in the command are misspelled or incorrect, the entire command will fail.
add a comment |
You can use sudo apt install app1 app2 app3
type command in order to install multiple applications from the terminal or a bash script. Simply list all of the applications you wish to install in that command.
For example, if I wanted to install the applications gufw, libreoffice and hexchat, I would simply run the command sudo apt install gufw libreoffice hexchat
.
Make sure you use the correct package name for each one because if any one of the package names in the command are misspelled or incorrect, the entire command will fail.
You can use sudo apt install app1 app2 app3
type command in order to install multiple applications from the terminal or a bash script. Simply list all of the applications you wish to install in that command.
For example, if I wanted to install the applications gufw, libreoffice and hexchat, I would simply run the command sudo apt install gufw libreoffice hexchat
.
Make sure you use the correct package name for each one because if any one of the package names in the command are misspelled or incorrect, the entire command will fail.
answered 6 hours ago
GerowenGerowen
802514
802514
add a comment |
add a comment |
To build a list of installed packages use:
sudo dpkg --get-selections > package.list
To restore the packages use:
sudo dpkg --set-selections < package.list
sudo apt-get dselect-upgrade
add a comment |
To build a list of installed packages use:
sudo dpkg --get-selections > package.list
To restore the packages use:
sudo dpkg --set-selections < package.list
sudo apt-get dselect-upgrade
add a comment |
To build a list of installed packages use:
sudo dpkg --get-selections > package.list
To restore the packages use:
sudo dpkg --set-selections < package.list
sudo apt-get dselect-upgrade
To build a list of installed packages use:
sudo dpkg --get-selections > package.list
To restore the packages use:
sudo dpkg --set-selections < package.list
sudo apt-get dselect-upgrade
answered 6 hours ago
SteveInBavariaSteveInBavaria
642419
642419
add a comment |
add a comment |
If the packages come from apt repositories , it is sufficient to provide a long list on command line
sudo apt install pkg1 pkg2 pkg3
If the list is large you may run into argument list too long error. In such case you can create a text file with list of packages one per line and run something like
sudo xargs --arg-file packages.txt apt install
Remember to update package cache before installing
sudo apt update
For deb
packages found locally on disk, you could use sudo dpkg -i ./*.deb
in current working directory or sudo dpkg -R -i debfiles/
to recursively traverse debfiles/
directory ( user-defined , can be replaced with another name). However, there are issues when those packages may need dependencies first, and the linked post provides a Python script to resolve that via topological sort.
add a comment |
If the packages come from apt repositories , it is sufficient to provide a long list on command line
sudo apt install pkg1 pkg2 pkg3
If the list is large you may run into argument list too long error. In such case you can create a text file with list of packages one per line and run something like
sudo xargs --arg-file packages.txt apt install
Remember to update package cache before installing
sudo apt update
For deb
packages found locally on disk, you could use sudo dpkg -i ./*.deb
in current working directory or sudo dpkg -R -i debfiles/
to recursively traverse debfiles/
directory ( user-defined , can be replaced with another name). However, there are issues when those packages may need dependencies first, and the linked post provides a Python script to resolve that via topological sort.
add a comment |
If the packages come from apt repositories , it is sufficient to provide a long list on command line
sudo apt install pkg1 pkg2 pkg3
If the list is large you may run into argument list too long error. In such case you can create a text file with list of packages one per line and run something like
sudo xargs --arg-file packages.txt apt install
Remember to update package cache before installing
sudo apt update
For deb
packages found locally on disk, you could use sudo dpkg -i ./*.deb
in current working directory or sudo dpkg -R -i debfiles/
to recursively traverse debfiles/
directory ( user-defined , can be replaced with another name). However, there are issues when those packages may need dependencies first, and the linked post provides a Python script to resolve that via topological sort.
If the packages come from apt repositories , it is sufficient to provide a long list on command line
sudo apt install pkg1 pkg2 pkg3
If the list is large you may run into argument list too long error. In such case you can create a text file with list of packages one per line and run something like
sudo xargs --arg-file packages.txt apt install
Remember to update package cache before installing
sudo apt update
For deb
packages found locally on disk, you could use sudo dpkg -i ./*.deb
in current working directory or sudo dpkg -R -i debfiles/
to recursively traverse debfiles/
directory ( user-defined , can be replaced with another name). However, there are issues when those packages may need dependencies first, and the linked post provides a Python script to resolve that via topological sort.
edited 4 hours ago
answered 6 hours ago
Sergiy KolodyazhnyySergiy Kolodyazhnyy
75.4k9155328
75.4k9155328
add a comment |
add a comment |
BElluu is a new contributor. Be nice, and check out our Code of Conduct.
BElluu is a new contributor. Be nice, and check out our Code of Conduct.
BElluu is a new contributor. Be nice, and check out our Code of Conduct.
BElluu is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1133594%2finstall-many-applications-using-one-command%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
Related to Installing multiple packages at the same time
– pomsky
6 hours ago