How is RPM package installed?
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
yesterday
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 yesterday
drgnfr
272
272
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
yesterday
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
yesterday
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
yesterday
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
yesterday
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
yesterday
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
21 hours ago
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 yesterday
Stephen Harris
24.4k24477
24.4k24477
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
yesterday
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
21 hours ago
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
yesterday
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
21 hours ago
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 yesterday
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
yesterday
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
21 hours ago
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
yesterday
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
21 hours ago
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
yesterday
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
yesterday
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
21 hours ago
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
21 hours ago
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
yesterday