How to mark a base package as not user installed while avoiding dnf autoremove?List installed, top-level...

The use of multiple foreign keys on same column in SQL Server

What is the command to reset a PC without deleting any files

How old can references or sources in a thesis be?

Patience, young "Padovan"

What do you call a Matrix-like slowdown and camera movement effect?

I probably found a bug with the sudo apt install function

How to make payment on the internet without leaving a money trail?

declaring a variable twice in IIFE

DOS, create pipe for stdin/stdout of command.com(or 4dos.com) in C or Batch?

A Journey Through Space and Time

How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?

A function which translates a sentence to title-case

Copenhagen passport control - US citizen

How to report a triplet of septets in NMR tabulation?

Why Is Death Allowed In the Matrix?

Infinite past with a beginning?

Pronouncing Dictionary.com's W.O.D "vade mecum" in English

How is it possible to have an ability score that is less than 3?

How do I create uniquely male characters?

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

Example of a relative pronoun

If Manufacturer spice model and Datasheet give different values which should I use?

Download, install and reboot computer at night if needed

Are there any consumables that function as addictive (psychedelic) drugs?



How to mark a base package as not user installed while avoiding dnf autoremove?


List installed, top-level packages in FedoraHow to remove gnome-games package without removing other packages?How to replicate installed package selection from one Fedora instance to another?How do I replicate installed package selections from one Debian system to another? (Debian Wheezy)How to find which package required another package?Find which Debian packages are only installed because they are recommended or suggestedWhy don't package managers have per-user installations and registries?Listing packages explicitly installed by the user using dnfHow do I mark dnf package as removed?How to identify and remove packages no longer in use?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2















On a freshly installed Fedora system, base packages such as sudo are not counted as user installed, i.e. dnf repoquery --userinstalled | grep sudo comes back empty. At the same time, these packages are also not considered by dnf autoremove, i.e. the command does not try to remove them. So far, so good.



Now, if I mark sudo as removable using dnf mark remove sudo, a subsequent dnf autoremove attempts (and fails) to remove it. The only way I know to again prevent autoremove to target sudo is to mark it as explicity user installed using dnf mark install sudo. However, now sudo has a different state than it had in the beginning: dnf repoquery --userinstalled | grep sudo now shows the sudo package.



My question is: How do I reset the state of a base package such as sudo? That is, how can I achieve that dnf repoquery --userinstalled | grep sudo comes back empty while dnf autoremove does not attempt to remove the package?










share|improve this question

























  • I don't think there's a way to do that yet. Your best bet is to not cause the situation in the first place.

    – Michael Hampton
    21 hours ago


















2















On a freshly installed Fedora system, base packages such as sudo are not counted as user installed, i.e. dnf repoquery --userinstalled | grep sudo comes back empty. At the same time, these packages are also not considered by dnf autoremove, i.e. the command does not try to remove them. So far, so good.



Now, if I mark sudo as removable using dnf mark remove sudo, a subsequent dnf autoremove attempts (and fails) to remove it. The only way I know to again prevent autoremove to target sudo is to mark it as explicity user installed using dnf mark install sudo. However, now sudo has a different state than it had in the beginning: dnf repoquery --userinstalled | grep sudo now shows the sudo package.



My question is: How do I reset the state of a base package such as sudo? That is, how can I achieve that dnf repoquery --userinstalled | grep sudo comes back empty while dnf autoremove does not attempt to remove the package?










share|improve this question

























  • I don't think there's a way to do that yet. Your best bet is to not cause the situation in the first place.

    – Michael Hampton
    21 hours ago














2












2








2








On a freshly installed Fedora system, base packages such as sudo are not counted as user installed, i.e. dnf repoquery --userinstalled | grep sudo comes back empty. At the same time, these packages are also not considered by dnf autoremove, i.e. the command does not try to remove them. So far, so good.



Now, if I mark sudo as removable using dnf mark remove sudo, a subsequent dnf autoremove attempts (and fails) to remove it. The only way I know to again prevent autoremove to target sudo is to mark it as explicity user installed using dnf mark install sudo. However, now sudo has a different state than it had in the beginning: dnf repoquery --userinstalled | grep sudo now shows the sudo package.



My question is: How do I reset the state of a base package such as sudo? That is, how can I achieve that dnf repoquery --userinstalled | grep sudo comes back empty while dnf autoremove does not attempt to remove the package?










share|improve this question
















On a freshly installed Fedora system, base packages such as sudo are not counted as user installed, i.e. dnf repoquery --userinstalled | grep sudo comes back empty. At the same time, these packages are also not considered by dnf autoremove, i.e. the command does not try to remove them. So far, so good.



Now, if I mark sudo as removable using dnf mark remove sudo, a subsequent dnf autoremove attempts (and fails) to remove it. The only way I know to again prevent autoremove to target sudo is to mark it as explicity user installed using dnf mark install sudo. However, now sudo has a different state than it had in the beginning: dnf repoquery --userinstalled | grep sudo now shows the sudo package.



My question is: How do I reset the state of a base package such as sudo? That is, how can I achieve that dnf repoquery --userinstalled | grep sudo comes back empty while dnf autoremove does not attempt to remove the package?







fedora package-management dependencies dnf






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday







inorik

















asked yesterday









inorikinorik

263




263













  • I don't think there's a way to do that yet. Your best bet is to not cause the situation in the first place.

    – Michael Hampton
    21 hours ago



















  • I don't think there's a way to do that yet. Your best bet is to not cause the situation in the first place.

    – Michael Hampton
    21 hours ago

















I don't think there's a way to do that yet. Your best bet is to not cause the situation in the first place.

– Michael Hampton
21 hours ago





I don't think there's a way to do that yet. Your best bet is to not cause the situation in the first place.

– Michael Hampton
21 hours ago










0






active

oldest

votes












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%2f510950%2fhow-to-mark-a-base-package-as-not-user-installed-while-avoiding-dnf-autoremove%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f510950%2fhow-to-mark-a-base-package-as-not-user-installed-while-avoiding-dnf-autoremove%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

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...