How is RPM package installed?

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












-1














This is like a 'chicken and egg' question.
RPM package manager (similarly other package management programs) is packaged in an RPM package itself and installed. But then how is RPM initially installed?
Likewise, if RPM is (forcefully) uninstalled, then how can it be installed back?










share|improve this question





















  • The same question could be asked about any package manager. If you made the question about the chicken-egg problem of package managers in general you would make it easier for non-Red Hat people to answer. Alternatively, if there is something special about Red Hat, it might help if you explain what the relevance is. Eg, do you have something in mind you plan to do with RPM in particular?
    – cryptarch
    Dec 21 '18 at 2:49















-1














This is like a 'chicken and egg' question.
RPM package manager (similarly other package management programs) is packaged in an RPM package itself and installed. But then how is RPM initially installed?
Likewise, if RPM is (forcefully) uninstalled, then how can it be installed back?










share|improve this question





















  • The same question could be asked about any package manager. If you made the question about the chicken-egg problem of package managers in general you would make it easier for non-Red Hat people to answer. Alternatively, if there is something special about Red Hat, it might help if you explain what the relevance is. Eg, do you have something in mind you plan to do with RPM in particular?
    – cryptarch
    Dec 21 '18 at 2:49













-1












-1








-1







This is like a 'chicken and egg' question.
RPM package manager (similarly other package management programs) is packaged in an RPM package itself and installed. But then how is RPM initially installed?
Likewise, if RPM is (forcefully) uninstalled, then how can it be installed back?










share|improve this question













This is like a 'chicken and egg' question.
RPM package manager (similarly other package management programs) is packaged in an RPM package itself and installed. But then how is RPM initially installed?
Likewise, if RPM is (forcefully) uninstalled, then how can it be installed back?







rpm






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 21 '18 at 1:52









drgnfr

394




394











  • The same question could be asked about any package manager. If you made the question about the chicken-egg problem of package managers in general you would make it easier for non-Red Hat people to answer. Alternatively, if there is something special about Red Hat, it might help if you explain what the relevance is. Eg, do you have something in mind you plan to do with RPM in particular?
    – cryptarch
    Dec 21 '18 at 2:49
















  • The same question could be asked about any package manager. If you made the question about the chicken-egg problem of package managers in general you would make it easier for non-Red Hat people to answer. Alternatively, if there is something special about Red Hat, it might help if you explain what the relevance is. Eg, do you have something in mind you plan to do with RPM in particular?
    – cryptarch
    Dec 21 '18 at 2:49















The same question could be asked about any package manager. If you made the question about the chicken-egg problem of package managers in general you would make it easier for non-Red Hat people to answer. Alternatively, if there is something special about Red Hat, it might help if you explain what the relevance is. Eg, do you have something in mind you plan to do with RPM in particular?
– cryptarch
Dec 21 '18 at 2:49




The same question could be asked about any package manager. If you made the question about the chicken-egg problem of package managers in general you would make it easier for non-Red Hat people to answer. Alternatively, if there is something special about Red Hat, it might help if you explain what the relevance is. Eg, do you have something in mind you plan to do with RPM in particular?
– cryptarch
Dec 21 '18 at 2:49










2 Answers
2






active

oldest

votes


















1














The installer ("anaconda" on CentOS) bootstraps the rpm environment by writing out the base files, then does the initial set of installs in a chroot environment. The rpm program from the installer exists outside of the install, and so isn't dependent on those files.



If you need to reinstall rpm then I'd recommend booting the installer into rescue mode and using the rpm command from that environment with the --root option to point to the OS you want to fix.






share|improve this answer




























    0














    You can "always" extract the RPM contents, e.g., using rpm2cpio, and put the executables/scripts where they can be used to install packages. Call that a bootstrap process...






    share|improve this answer




















    • rpm2cpio will extract the content of the rpm package. It will not execute the rpm scriptlets. So, it is not equivalent to rpm -i. But this does not answer my question: how is rpm initially installed?
      – drgnfr
      Dec 21 '18 at 2:19











    • For that, you'll have to read the installer provided on various ISO media. They don't bake the resulting filesystem ahead of time; it's built up by running programs.
      – Thomas Dickey
      Dec 21 '18 at 9:19










    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',
    autoActivateHeartbeat: false,
    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
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f490247%2fhow-is-rpm-package-installed%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









    1














    The installer ("anaconda" on CentOS) bootstraps the rpm environment by writing out the base files, then does the initial set of installs in a chroot environment. The rpm program from the installer exists outside of the install, and so isn't dependent on those files.



    If you need to reinstall rpm then I'd recommend booting the installer into rescue mode and using the rpm command from that environment with the --root option to point to the OS you want to fix.






    share|improve this answer

























      1














      The installer ("anaconda" on CentOS) bootstraps the rpm environment by writing out the base files, then does the initial set of installs in a chroot environment. The rpm program from the installer exists outside of the install, and so isn't dependent on those files.



      If you need to reinstall rpm then I'd recommend booting the installer into rescue mode and using the rpm command from that environment with the --root option to point to the OS you want to fix.






      share|improve this answer























        1












        1








        1






        The installer ("anaconda" on CentOS) bootstraps the rpm environment by writing out the base files, then does the initial set of installs in a chroot environment. The rpm program from the installer exists outside of the install, and so isn't dependent on those files.



        If you need to reinstall rpm then I'd recommend booting the installer into rescue mode and using the rpm command from that environment with the --root option to point to the OS you want to fix.






        share|improve this answer












        The installer ("anaconda" on CentOS) bootstraps the rpm environment by writing out the base files, then does the initial set of installs in a chroot environment. The rpm program from the installer exists outside of the install, and so isn't dependent on those files.



        If you need to reinstall rpm then I'd recommend booting the installer into rescue mode and using the rpm command from that environment with the --root option to point to the OS you want to fix.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 21 '18 at 2:36









        Stephen Harris

        25.1k24477




        25.1k24477























            0














            You can "always" extract the RPM contents, e.g., using rpm2cpio, and put the executables/scripts where they can be used to install packages. Call that a bootstrap process...






            share|improve this answer




















            • rpm2cpio will extract the content of the rpm package. It will not execute the rpm scriptlets. So, it is not equivalent to rpm -i. But this does not answer my question: how is rpm initially installed?
              – drgnfr
              Dec 21 '18 at 2:19











            • For that, you'll have to read the installer provided on various ISO media. They don't bake the resulting filesystem ahead of time; it's built up by running programs.
              – Thomas Dickey
              Dec 21 '18 at 9:19















            0














            You can "always" extract the RPM contents, e.g., using rpm2cpio, and put the executables/scripts where they can be used to install packages. Call that a bootstrap process...






            share|improve this answer




















            • rpm2cpio will extract the content of the rpm package. It will not execute the rpm scriptlets. So, it is not equivalent to rpm -i. But this does not answer my question: how is rpm initially installed?
              – drgnfr
              Dec 21 '18 at 2:19











            • For that, you'll have to read the installer provided on various ISO media. They don't bake the resulting filesystem ahead of time; it's built up by running programs.
              – Thomas Dickey
              Dec 21 '18 at 9:19













            0












            0








            0






            You can "always" extract the RPM contents, e.g., using rpm2cpio, and put the executables/scripts where they can be used to install packages. Call that a bootstrap process...






            share|improve this answer












            You can "always" extract the RPM contents, e.g., using rpm2cpio, and put the executables/scripts where they can be used to install packages. Call that a bootstrap process...







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 21 '18 at 2:04









            Thomas Dickey

            52k594164




            52k594164











            • rpm2cpio will extract the content of the rpm package. It will not execute the rpm scriptlets. So, it is not equivalent to rpm -i. But this does not answer my question: how is rpm initially installed?
              – drgnfr
              Dec 21 '18 at 2:19











            • For that, you'll have to read the installer provided on various ISO media. They don't bake the resulting filesystem ahead of time; it's built up by running programs.
              – Thomas Dickey
              Dec 21 '18 at 9:19
















            • rpm2cpio will extract the content of the rpm package. It will not execute the rpm scriptlets. So, it is not equivalent to rpm -i. But this does not answer my question: how is rpm initially installed?
              – drgnfr
              Dec 21 '18 at 2:19











            • For that, you'll have to read the installer provided on various ISO media. They don't bake the resulting filesystem ahead of time; it's built up by running programs.
              – Thomas Dickey
              Dec 21 '18 at 9:19















            rpm2cpio will extract the content of the rpm package. It will not execute the rpm scriptlets. So, it is not equivalent to rpm -i. But this does not answer my question: how is rpm initially installed?
            – drgnfr
            Dec 21 '18 at 2:19





            rpm2cpio will extract the content of the rpm package. It will not execute the rpm scriptlets. So, it is not equivalent to rpm -i. But this does not answer my question: how is rpm initially installed?
            – drgnfr
            Dec 21 '18 at 2:19













            For that, you'll have to read the installer provided on various ISO media. They don't bake the resulting filesystem ahead of time; it's built up by running programs.
            – Thomas Dickey
            Dec 21 '18 at 9:19




            For that, you'll have to read the installer provided on various ISO media. They don't bake the resulting filesystem ahead of time; it's built up by running programs.
            – Thomas Dickey
            Dec 21 '18 at 9:19

















            draft saved

            draft discarded
















































            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%2f490247%2fhow-is-rpm-package-installed%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

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

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay