How to reinstall all applications with desktop-files in simple way?How to obtain installed package files?How to find the .desktop files for pinned applications in the Unity launcher?Install two applications with the same name?Will I have to reinstall applications if I reinstall Ubuntu?How to manage applicationsSnap in Ubuntu 16.04How to generate deb files with source code without makefileEverytime, I need to install OS and some applications. Is there any way to install ubuntu with all the applications in single installation?
What is the name of the fallacy involving white and black swans?
How to break a equation with a single "summation symbol (sum) " common?
Include a path in a table
Surmounting set-theoretical difficulties in algebraic geometry
NP-hard problems but only for n≥3
Names of all the spacecrafts on the art by Philippe “Manchu" Bouchet
Does "solicit" mean the solicitor must receive what is being solicited in context of 52 U.S. Code Section 30121?
UK visitors visa needed fast for badly injured family member
How can I add an ammeter and/or voltmeter to my home breaker panel?
Is the sentence "pay some in cash" understandable?
Are there any dishes that can only be cooked with a microwave?
Ran out of space of newly installed HDD?
Looking for a reference in Greek
Bash script that shows changing real time values from commands
"Startup" working hours - is it normal to be asked to work 11 hours/ day?
Insets around a clock
Beginner Tactics - Why Isn't This Mate?
What does this docker log entry mean?
How to exit read-only mode
Force a HTML form to submit over IPv4
Can a wizard copy a wizard spell into their spellbook that they aren't high enough level to cast?
Why is the core ChaCha primitive not good for use in a CRCF? Why create BLAKE?
Does Global Entry require agreeing to a higher standard of behavior?
Why are there so many binary systems?
How to reinstall all applications with desktop-files in simple way?
How to obtain installed package files?How to find the .desktop files for pinned applications in the Unity launcher?Install two applications with the same name?Will I have to reinstall applications if I reinstall Ubuntu?How to manage applicationsSnap in Ubuntu 16.04How to generate deb files with source code without makefileEverytime, I need to install OS and some applications. Is there any way to install ubuntu with all the applications in single installation?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I have Ubuntu system with a lot packages and applications installed.
Let's name this system as a source. The applications here were installed only as deb-packages.
I need to install application with desktop-files on new system (target).
How can I do this?
apt software-installation .desktop
add a comment
|
I have Ubuntu system with a lot packages and applications installed.
Let's name this system as a source. The applications here were installed only as deb-packages.
I need to install application with desktop-files on new system (target).
How can I do this?
apt software-installation .desktop
Nice Q&A, I've been wondering how to do that for a long time. However, you should be more specific about which applications this procedure will reinstall. The correct answer to your question as it stands now is "it's impossible to automate this".
– danzel
Sep 5 at 22:15
add a comment
|
I have Ubuntu system with a lot packages and applications installed.
Let's name this system as a source. The applications here were installed only as deb-packages.
I need to install application with desktop-files on new system (target).
How can I do this?
apt software-installation .desktop
I have Ubuntu system with a lot packages and applications installed.
Let's name this system as a source. The applications here were installed only as deb-packages.
I need to install application with desktop-files on new system (target).
How can I do this?
apt software-installation .desktop
apt software-installation .desktop
edited Sep 6 at 6:47
N0rbert
asked Sep 5 at 20:31
N0rbertN0rbert
35.6k10 gold badges81 silver badges166 bronze badges
35.6k10 gold badges81 silver badges166 bronze badges
Nice Q&A, I've been wondering how to do that for a long time. However, you should be more specific about which applications this procedure will reinstall. The correct answer to your question as it stands now is "it's impossible to automate this".
– danzel
Sep 5 at 22:15
add a comment
|
Nice Q&A, I've been wondering how to do that for a long time. However, you should be more specific about which applications this procedure will reinstall. The correct answer to your question as it stands now is "it's impossible to automate this".
– danzel
Sep 5 at 22:15
Nice Q&A, I've been wondering how to do that for a long time. However, you should be more specific about which applications this procedure will reinstall. The correct answer to your question as it stands now is "it's impossible to automate this".
– danzel
Sep 5 at 22:15
Nice Q&A, I've been wondering how to do that for a long time. However, you should be more specific about which applications this procedure will reinstall. The correct answer to your question as it stands now is "it's impossible to automate this".
– danzel
Sep 5 at 22:15
add a comment
|
1 Answer
1
active
oldest
votes
At first we need to get the list of executables on source system with command like:
dpkg -S $(which $(grep -r ^Exec --no-filename /usr/share/applications/ | sed 's/Exec=//' | awk 'print $1' ) | grep -v /home/$USER | grep -v /usr/local) 2> /dev/null | awk 'print $1' | sed 's/://' | sort -u > apps-list.txt
(command is formatted as in-line code to provide readability, please do not change it to code block)
Command above parses all desktop-files in /usr/share/applications/
, extracts contents of Exec=
lines, skips applications installed in home folder and in /usr/local
, then finds corresponding paths and finally transforms them to the list of packages to store in text file.
At second on target we can simply install these applications with command like
sudo apt install $(cat apps-list.txt)
Note: we can skip non-existent packages by filtering them out using grep:
sudo apt install $(cat apps-list.txt | grep -v -E "app-not-found1|app-not-found2")
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/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1171158%2fhow-to-reinstall-all-applications-with-desktop-files-in-simple-way%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
At first we need to get the list of executables on source system with command like:
dpkg -S $(which $(grep -r ^Exec --no-filename /usr/share/applications/ | sed 's/Exec=//' | awk 'print $1' ) | grep -v /home/$USER | grep -v /usr/local) 2> /dev/null | awk 'print $1' | sed 's/://' | sort -u > apps-list.txt
(command is formatted as in-line code to provide readability, please do not change it to code block)
Command above parses all desktop-files in /usr/share/applications/
, extracts contents of Exec=
lines, skips applications installed in home folder and in /usr/local
, then finds corresponding paths and finally transforms them to the list of packages to store in text file.
At second on target we can simply install these applications with command like
sudo apt install $(cat apps-list.txt)
Note: we can skip non-existent packages by filtering them out using grep:
sudo apt install $(cat apps-list.txt | grep -v -E "app-not-found1|app-not-found2")
add a comment
|
At first we need to get the list of executables on source system with command like:
dpkg -S $(which $(grep -r ^Exec --no-filename /usr/share/applications/ | sed 's/Exec=//' | awk 'print $1' ) | grep -v /home/$USER | grep -v /usr/local) 2> /dev/null | awk 'print $1' | sed 's/://' | sort -u > apps-list.txt
(command is formatted as in-line code to provide readability, please do not change it to code block)
Command above parses all desktop-files in /usr/share/applications/
, extracts contents of Exec=
lines, skips applications installed in home folder and in /usr/local
, then finds corresponding paths and finally transforms them to the list of packages to store in text file.
At second on target we can simply install these applications with command like
sudo apt install $(cat apps-list.txt)
Note: we can skip non-existent packages by filtering them out using grep:
sudo apt install $(cat apps-list.txt | grep -v -E "app-not-found1|app-not-found2")
add a comment
|
At first we need to get the list of executables on source system with command like:
dpkg -S $(which $(grep -r ^Exec --no-filename /usr/share/applications/ | sed 's/Exec=//' | awk 'print $1' ) | grep -v /home/$USER | grep -v /usr/local) 2> /dev/null | awk 'print $1' | sed 's/://' | sort -u > apps-list.txt
(command is formatted as in-line code to provide readability, please do not change it to code block)
Command above parses all desktop-files in /usr/share/applications/
, extracts contents of Exec=
lines, skips applications installed in home folder and in /usr/local
, then finds corresponding paths and finally transforms them to the list of packages to store in text file.
At second on target we can simply install these applications with command like
sudo apt install $(cat apps-list.txt)
Note: we can skip non-existent packages by filtering them out using grep:
sudo apt install $(cat apps-list.txt | grep -v -E "app-not-found1|app-not-found2")
At first we need to get the list of executables on source system with command like:
dpkg -S $(which $(grep -r ^Exec --no-filename /usr/share/applications/ | sed 's/Exec=//' | awk 'print $1' ) | grep -v /home/$USER | grep -v /usr/local) 2> /dev/null | awk 'print $1' | sed 's/://' | sort -u > apps-list.txt
(command is formatted as in-line code to provide readability, please do not change it to code block)
Command above parses all desktop-files in /usr/share/applications/
, extracts contents of Exec=
lines, skips applications installed in home folder and in /usr/local
, then finds corresponding paths and finally transforms them to the list of packages to store in text file.
At second on target we can simply install these applications with command like
sudo apt install $(cat apps-list.txt)
Note: we can skip non-existent packages by filtering them out using grep:
sudo apt install $(cat apps-list.txt | grep -v -E "app-not-found1|app-not-found2")
answered Sep 5 at 20:31
N0rbertN0rbert
35.6k10 gold badges81 silver badges166 bronze badges
35.6k10 gold badges81 silver badges166 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1171158%2fhow-to-reinstall-all-applications-with-desktop-files-in-simple-way%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
Nice Q&A, I've been wondering how to do that for a long time. However, you should be more specific about which applications this procedure will reinstall. The correct answer to your question as it stands now is "it's impossible to automate this".
– danzel
Sep 5 at 22:15