Is there a chance that a CentOS machine does not have RPM?











up vote
1
down vote

favorite












I am going to work on a remotely located CentOS machine without internet. I do not know its situation and it is very hard for me to move things between. In other words I have only one-shot for setting it up, so I want to be well-prepared for every possible state of the machine.



I will need some programs, so I downloaded .rpm packages in my Windows machine. I am planning to transfer them to the CentOS machine and install with RPM. The question is whether there is a chance that the machine does not have RPM? And if yes, what should I do to get RPM and install the .rpm packages?










share|improve this question









New contributor




trxrg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    1
    down vote

    favorite












    I am going to work on a remotely located CentOS machine without internet. I do not know its situation and it is very hard for me to move things between. In other words I have only one-shot for setting it up, so I want to be well-prepared for every possible state of the machine.



    I will need some programs, so I downloaded .rpm packages in my Windows machine. I am planning to transfer them to the CentOS machine and install with RPM. The question is whether there is a chance that the machine does not have RPM? And if yes, what should I do to get RPM and install the .rpm packages?










    share|improve this question









    New contributor




    trxrg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am going to work on a remotely located CentOS machine without internet. I do not know its situation and it is very hard for me to move things between. In other words I have only one-shot for setting it up, so I want to be well-prepared for every possible state of the machine.



      I will need some programs, so I downloaded .rpm packages in my Windows machine. I am planning to transfer them to the CentOS machine and install with RPM. The question is whether there is a chance that the machine does not have RPM? And if yes, what should I do to get RPM and install the .rpm packages?










      share|improve this question









      New contributor




      trxrg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I am going to work on a remotely located CentOS machine without internet. I do not know its situation and it is very hard for me to move things between. In other words I have only one-shot for setting it up, so I want to be well-prepared for every possible state of the machine.



      I will need some programs, so I downloaded .rpm packages in my Windows machine. I am planning to transfer them to the CentOS machine and install with RPM. The question is whether there is a chance that the machine does not have RPM? And if yes, what should I do to get RPM and install the .rpm packages?







      centos rpm






      share|improve this question









      New contributor




      trxrg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      trxrg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited Dec 4 at 13:25





















      New contributor




      trxrg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Dec 4 at 13:08









      trxrg

      62




      62




      New contributor




      trxrg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      trxrg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      trxrg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          3
          down vote













          CentOS is rpm-based; that means that everything on that server is installed with rpms. Theoretically, it is possible that someone removed the rpm package, but then you're in big trouble. If it is just any normal CentOS machine, then rpm is surely present.






          share|improve this answer






























            up vote
            2
            down vote













            No; if someone removed yum/rpm it's no longer CentOS. You could bring live ISOs of CentOS/Ubuntu/Manjaro in case you need any base system components. Generally bringing individual rpm files can be a problem because you may be missing the correct version of dependencies, so it's best to bring a copy of a rpm repositories (the base one is included on live ISOs), if you have a fast connection and plenty of free space you can look up how to make a full offline clone of a distributions repositories.



            yum install -y createrepo yum-utils
            reposync -p /var/www/html/repo -r <REPOID> -l
            createrepo /var/www/html/repo





            share|improve this answer























            • Can I make the offline clone on my Windows Pc?
              – trxrg
              Dec 4 at 13:40










            • @trxrg yes, but you may want to install CentOS in virtualbox on Windows to make it easy on yourself access.redhat.com/solutions/9892
              – user1133275
              Dec 4 at 13:50











            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: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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
            });


            }
            });






            trxrg is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f485888%2fis-there-a-chance-that-a-centos-machine-does-not-have-rpm%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote













            CentOS is rpm-based; that means that everything on that server is installed with rpms. Theoretically, it is possible that someone removed the rpm package, but then you're in big trouble. If it is just any normal CentOS machine, then rpm is surely present.






            share|improve this answer



























              up vote
              3
              down vote













              CentOS is rpm-based; that means that everything on that server is installed with rpms. Theoretically, it is possible that someone removed the rpm package, but then you're in big trouble. If it is just any normal CentOS machine, then rpm is surely present.






              share|improve this answer

























                up vote
                3
                down vote










                up vote
                3
                down vote









                CentOS is rpm-based; that means that everything on that server is installed with rpms. Theoretically, it is possible that someone removed the rpm package, but then you're in big trouble. If it is just any normal CentOS machine, then rpm is surely present.






                share|improve this answer














                CentOS is rpm-based; that means that everything on that server is installed with rpms. Theoretically, it is possible that someone removed the rpm package, but then you're in big trouble. If it is just any normal CentOS machine, then rpm is surely present.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Dec 4 at 15:31









                Peschke

                2,400924




                2,400924










                answered Dec 4 at 13:25









                Chris Maes

                1,02411018




                1,02411018
























                    up vote
                    2
                    down vote













                    No; if someone removed yum/rpm it's no longer CentOS. You could bring live ISOs of CentOS/Ubuntu/Manjaro in case you need any base system components. Generally bringing individual rpm files can be a problem because you may be missing the correct version of dependencies, so it's best to bring a copy of a rpm repositories (the base one is included on live ISOs), if you have a fast connection and plenty of free space you can look up how to make a full offline clone of a distributions repositories.



                    yum install -y createrepo yum-utils
                    reposync -p /var/www/html/repo -r <REPOID> -l
                    createrepo /var/www/html/repo





                    share|improve this answer























                    • Can I make the offline clone on my Windows Pc?
                      – trxrg
                      Dec 4 at 13:40










                    • @trxrg yes, but you may want to install CentOS in virtualbox on Windows to make it easy on yourself access.redhat.com/solutions/9892
                      – user1133275
                      Dec 4 at 13:50















                    up vote
                    2
                    down vote













                    No; if someone removed yum/rpm it's no longer CentOS. You could bring live ISOs of CentOS/Ubuntu/Manjaro in case you need any base system components. Generally bringing individual rpm files can be a problem because you may be missing the correct version of dependencies, so it's best to bring a copy of a rpm repositories (the base one is included on live ISOs), if you have a fast connection and plenty of free space you can look up how to make a full offline clone of a distributions repositories.



                    yum install -y createrepo yum-utils
                    reposync -p /var/www/html/repo -r <REPOID> -l
                    createrepo /var/www/html/repo





                    share|improve this answer























                    • Can I make the offline clone on my Windows Pc?
                      – trxrg
                      Dec 4 at 13:40










                    • @trxrg yes, but you may want to install CentOS in virtualbox on Windows to make it easy on yourself access.redhat.com/solutions/9892
                      – user1133275
                      Dec 4 at 13:50













                    up vote
                    2
                    down vote










                    up vote
                    2
                    down vote









                    No; if someone removed yum/rpm it's no longer CentOS. You could bring live ISOs of CentOS/Ubuntu/Manjaro in case you need any base system components. Generally bringing individual rpm files can be a problem because you may be missing the correct version of dependencies, so it's best to bring a copy of a rpm repositories (the base one is included on live ISOs), if you have a fast connection and plenty of free space you can look up how to make a full offline clone of a distributions repositories.



                    yum install -y createrepo yum-utils
                    reposync -p /var/www/html/repo -r <REPOID> -l
                    createrepo /var/www/html/repo





                    share|improve this answer














                    No; if someone removed yum/rpm it's no longer CentOS. You could bring live ISOs of CentOS/Ubuntu/Manjaro in case you need any base system components. Generally bringing individual rpm files can be a problem because you may be missing the correct version of dependencies, so it's best to bring a copy of a rpm repositories (the base one is included on live ISOs), if you have a fast connection and plenty of free space you can look up how to make a full offline clone of a distributions repositories.



                    yum install -y createrepo yum-utils
                    reposync -p /var/www/html/repo -r <REPOID> -l
                    createrepo /var/www/html/repo






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Dec 4 at 13:52

























                    answered Dec 4 at 13:28









                    user1133275

                    2,713415




                    2,713415












                    • Can I make the offline clone on my Windows Pc?
                      – trxrg
                      Dec 4 at 13:40










                    • @trxrg yes, but you may want to install CentOS in virtualbox on Windows to make it easy on yourself access.redhat.com/solutions/9892
                      – user1133275
                      Dec 4 at 13:50


















                    • Can I make the offline clone on my Windows Pc?
                      – trxrg
                      Dec 4 at 13:40










                    • @trxrg yes, but you may want to install CentOS in virtualbox on Windows to make it easy on yourself access.redhat.com/solutions/9892
                      – user1133275
                      Dec 4 at 13:50
















                    Can I make the offline clone on my Windows Pc?
                    – trxrg
                    Dec 4 at 13:40




                    Can I make the offline clone on my Windows Pc?
                    – trxrg
                    Dec 4 at 13:40












                    @trxrg yes, but you may want to install CentOS in virtualbox on Windows to make it easy on yourself access.redhat.com/solutions/9892
                    – user1133275
                    Dec 4 at 13:50




                    @trxrg yes, but you may want to install CentOS in virtualbox on Windows to make it easy on yourself access.redhat.com/solutions/9892
                    – user1133275
                    Dec 4 at 13:50










                    trxrg is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    trxrg is a new contributor. Be nice, and check out our Code of Conduct.













                    trxrg is a new contributor. Be nice, and check out our Code of Conduct.












                    trxrg is a new contributor. Be nice, and check out our Code of Conduct.
















                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


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





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2funix.stackexchange.com%2fquestions%2f485888%2fis-there-a-chance-that-a-centos-machine-does-not-have-rpm%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

                    Accessing regular linux commands in Huawei's Dopra Linux

                    Can't connect RFCOMM socket: Host is down

                    Kernel panic - not syncing: Fatal Exception in Interrupt