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;









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?










share|improve this question



























  • 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

















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?










share|improve this question



























  • 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













0













0









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?










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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










1 Answer
1






active

oldest

votes


















1



















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






share|improve this answer



























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



    );














    draft saved

    draft discarded
















    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









    1



















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






    share|improve this answer






























      1



















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






      share|improve this answer




























        1















        1











        1









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






        share|improve this answer














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







        share|improve this answer













        share|improve this answer




        share|improve this answer










        answered Sep 5 at 20:31









        N0rbertN0rbert

        35.6k10 gold badges81 silver badges166 bronze badges




        35.6k10 gold badges81 silver badges166 bronze badges































            draft saved

            draft discarded















































            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.




            draft saved


            draft discarded














            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





















































            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









            Popular posts from this blog

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?