Migrate packages from one fedora system to other

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Currently, I am using Fedora 26 for my daily use.
I want to transfer all the packages which I have installed with command



sudo dnf install 


to another fedora desktop (as it doesn't have access to internet).







share|improve this question


























    up vote
    0
    down vote

    favorite












    Currently, I am using Fedora 26 for my daily use.
    I want to transfer all the packages which I have installed with command



    sudo dnf install 


    to another fedora desktop (as it doesn't have access to internet).







    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Currently, I am using Fedora 26 for my daily use.
      I want to transfer all the packages which I have installed with command



      sudo dnf install 


      to another fedora desktop (as it doesn't have access to internet).







      share|improve this question














      Currently, I am using Fedora 26 for my daily use.
      I want to transfer all the packages which I have installed with command



      sudo dnf install 


      to another fedora desktop (as it doesn't have access to internet).









      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 20 at 22:43









      Rui F Ribeiro

      35.3k1270113




      35.3k1270113










      asked Jan 14 at 8:50









      Nikhil Padole

      33




      33




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          A simple way is using the "--downloadonly" option :



          sudo dnf --downloadonly install <whatever>


          this downloads the rpm package(s) and also its/their dependencies as needed for on the desktop that has internet access (let's call it "computer-A"),

          then transfer the rpms to other system (computer-B) and



          sudo dnf install *.rpm


          Note: if computer-B is missing some packages compared to computer-A, you may need to iterate in downloading rpms. In such case, "dnf download" command might be more appropriate to get missing rpms for computer-B (see https://dnf-plugins-core.readthedocs.io/en/latest/download.html).



          An alternative is to set "keepcache=1" in /etc/dnf/dnf.conf in computer-A, and simply run 'dnf install ': this will retain installed packages files in computer-A, that you'll find rpm files in /var/cache/dnf/... Note that this doesn't resolve the case where computer-B is missing packages compared to computer-A.



          Another alternative is to create a local repository : see https://www.techrepublic.com/blog/linux-and-open-source/create-your-own-yum-repository/ (this is for yum but applies also for dnf).






          share|improve this answer






















          • And how to manage dependencies for that package
            – Nikhil Padole
            Aug 26 at 7:57










          • Hi, take a look at edited answer with some more elements.
            – tonioc
            Aug 26 at 14:10










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f416988%2fmigrate-packages-from-one-fedora-system-to-other%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote



          accepted










          A simple way is using the "--downloadonly" option :



          sudo dnf --downloadonly install <whatever>


          this downloads the rpm package(s) and also its/their dependencies as needed for on the desktop that has internet access (let's call it "computer-A"),

          then transfer the rpms to other system (computer-B) and



          sudo dnf install *.rpm


          Note: if computer-B is missing some packages compared to computer-A, you may need to iterate in downloading rpms. In such case, "dnf download" command might be more appropriate to get missing rpms for computer-B (see https://dnf-plugins-core.readthedocs.io/en/latest/download.html).



          An alternative is to set "keepcache=1" in /etc/dnf/dnf.conf in computer-A, and simply run 'dnf install ': this will retain installed packages files in computer-A, that you'll find rpm files in /var/cache/dnf/... Note that this doesn't resolve the case where computer-B is missing packages compared to computer-A.



          Another alternative is to create a local repository : see https://www.techrepublic.com/blog/linux-and-open-source/create-your-own-yum-repository/ (this is for yum but applies also for dnf).






          share|improve this answer






















          • And how to manage dependencies for that package
            – Nikhil Padole
            Aug 26 at 7:57










          • Hi, take a look at edited answer with some more elements.
            – tonioc
            Aug 26 at 14:10














          up vote
          0
          down vote



          accepted










          A simple way is using the "--downloadonly" option :



          sudo dnf --downloadonly install <whatever>


          this downloads the rpm package(s) and also its/their dependencies as needed for on the desktop that has internet access (let's call it "computer-A"),

          then transfer the rpms to other system (computer-B) and



          sudo dnf install *.rpm


          Note: if computer-B is missing some packages compared to computer-A, you may need to iterate in downloading rpms. In such case, "dnf download" command might be more appropriate to get missing rpms for computer-B (see https://dnf-plugins-core.readthedocs.io/en/latest/download.html).



          An alternative is to set "keepcache=1" in /etc/dnf/dnf.conf in computer-A, and simply run 'dnf install ': this will retain installed packages files in computer-A, that you'll find rpm files in /var/cache/dnf/... Note that this doesn't resolve the case where computer-B is missing packages compared to computer-A.



          Another alternative is to create a local repository : see https://www.techrepublic.com/blog/linux-and-open-source/create-your-own-yum-repository/ (this is for yum but applies also for dnf).






          share|improve this answer






















          • And how to manage dependencies for that package
            – Nikhil Padole
            Aug 26 at 7:57










          • Hi, take a look at edited answer with some more elements.
            – tonioc
            Aug 26 at 14:10












          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          A simple way is using the "--downloadonly" option :



          sudo dnf --downloadonly install <whatever>


          this downloads the rpm package(s) and also its/their dependencies as needed for on the desktop that has internet access (let's call it "computer-A"),

          then transfer the rpms to other system (computer-B) and



          sudo dnf install *.rpm


          Note: if computer-B is missing some packages compared to computer-A, you may need to iterate in downloading rpms. In such case, "dnf download" command might be more appropriate to get missing rpms for computer-B (see https://dnf-plugins-core.readthedocs.io/en/latest/download.html).



          An alternative is to set "keepcache=1" in /etc/dnf/dnf.conf in computer-A, and simply run 'dnf install ': this will retain installed packages files in computer-A, that you'll find rpm files in /var/cache/dnf/... Note that this doesn't resolve the case where computer-B is missing packages compared to computer-A.



          Another alternative is to create a local repository : see https://www.techrepublic.com/blog/linux-and-open-source/create-your-own-yum-repository/ (this is for yum but applies also for dnf).






          share|improve this answer














          A simple way is using the "--downloadonly" option :



          sudo dnf --downloadonly install <whatever>


          this downloads the rpm package(s) and also its/their dependencies as needed for on the desktop that has internet access (let's call it "computer-A"),

          then transfer the rpms to other system (computer-B) and



          sudo dnf install *.rpm


          Note: if computer-B is missing some packages compared to computer-A, you may need to iterate in downloading rpms. In such case, "dnf download" command might be more appropriate to get missing rpms for computer-B (see https://dnf-plugins-core.readthedocs.io/en/latest/download.html).



          An alternative is to set "keepcache=1" in /etc/dnf/dnf.conf in computer-A, and simply run 'dnf install ': this will retain installed packages files in computer-A, that you'll find rpm files in /var/cache/dnf/... Note that this doesn't resolve the case where computer-B is missing packages compared to computer-A.



          Another alternative is to create a local repository : see https://www.techrepublic.com/blog/linux-and-open-source/create-your-own-yum-repository/ (this is for yum but applies also for dnf).







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 26 at 14:10

























          answered Jan 14 at 9:53









          tonioc

          1,12457




          1,12457











          • And how to manage dependencies for that package
            – Nikhil Padole
            Aug 26 at 7:57










          • Hi, take a look at edited answer with some more elements.
            – tonioc
            Aug 26 at 14:10
















          • And how to manage dependencies for that package
            – Nikhil Padole
            Aug 26 at 7:57










          • Hi, take a look at edited answer with some more elements.
            – tonioc
            Aug 26 at 14:10















          And how to manage dependencies for that package
          – Nikhil Padole
          Aug 26 at 7:57




          And how to manage dependencies for that package
          – Nikhil Padole
          Aug 26 at 7:57












          Hi, take a look at edited answer with some more elements.
          – tonioc
          Aug 26 at 14:10




          Hi, take a look at edited answer with some more elements.
          – tonioc
          Aug 26 at 14:10












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f416988%2fmigrate-packages-from-one-fedora-system-to-other%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?