How is RPM package installed?
Clash Royale CLAN TAG#URR8PPP
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
add a comment |
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
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
add a comment |
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
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
rpm
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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.
add a comment |
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...
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
add a comment |
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
);
);
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%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
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.
add a comment |
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.
add a comment |
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.
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.
answered Dec 21 '18 at 2:36
Stephen Harris
25.1k24477
25.1k24477
add a comment |
add a comment |
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...
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
add a comment |
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...
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
add a comment |
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...
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...
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
add a comment |
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
add a comment |
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.
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%2funix.stackexchange.com%2fquestions%2f490247%2fhow-is-rpm-package-installed%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
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