Exact system actions when we use this commands Announcing the arrival of Valued Associate...

Why did Israel vote against lifting the American embargo on Cuba?

Is the Mordenkainen's Sword spell underpowered?

What's the difference between using dependency injection with a container and using a service locator?

What is the difference between 准时 and 按时?

Protagonist's race is hidden - should I reveal it?

Why not use the yoke to control yaw, as well as pitch and roll?

What is the definining line between a helicopter and a drone a person can ride in?

Suing a Police Officer Instead of the Police Department

Etymology of 見舞い

How to charge percentage of transaction cost?

Is there a verb for listening stealthily?

How was Lagrange appointed professor of mathematics so early?

Married in secret, can marital status in passport be changed at a later date?

Putting Ant-Man on house arrest

Why do people think Winterfell crypts is the safest place for women, children & old people?

/bin/ls sorts differently than just ls

Why aren't these two solutions equivalent? Combinatorics problem

Why doesn't the university give past final exams' answers?

Kepler's 3rd law: ratios don't fit data

Does traveling In The United States require a passport or can I use my green card if not a US citizen?

Has a Nobel Peace laureate ever been accused of war crimes?

Trying to enter the Fox's den

"Destructive force" carried by a B-52?

Is it OK if I do not take the receipt in Germany?



Exact system actions when we use this commands



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Question about this shell commandWhat commands the suspend item in system menu really launch?Why I obtain this error when I try to perform this simple bash script?How can I use ZSH when I use sudo commands but not as default root shell?What does “xargs grep” do?Run commands on system startupUbuntu Terminal takes a while when performing commands using sudoTurn off WSL Ubuntu echo when typing commandsI can’t launch into the displayWhat happens if no destination is defined after > (redirection)?





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







-1















I use Ubuntu Studio 18.04.2 LTS (64 bit Linux).



I want to know what exactly the system does when we use the following commands:



sudo dpkg -l | grep -i ^rc
sudo dpkg -l | grep -i ^rc | cut -d " " -f 3 | xargs dpkg --purge









share|improve this question

























  • dpkg queries list of installed packages, other commands just filter the output

    – Sergiy Kolodyazhnyy
    6 hours ago


















-1















I use Ubuntu Studio 18.04.2 LTS (64 bit Linux).



I want to know what exactly the system does when we use the following commands:



sudo dpkg -l | grep -i ^rc
sudo dpkg -l | grep -i ^rc | cut -d " " -f 3 | xargs dpkg --purge









share|improve this question

























  • dpkg queries list of installed packages, other commands just filter the output

    – Sergiy Kolodyazhnyy
    6 hours ago














-1












-1








-1








I use Ubuntu Studio 18.04.2 LTS (64 bit Linux).



I want to know what exactly the system does when we use the following commands:



sudo dpkg -l | grep -i ^rc
sudo dpkg -l | grep -i ^rc | cut -d " " -f 3 | xargs dpkg --purge









share|improve this question
















I use Ubuntu Studio 18.04.2 LTS (64 bit Linux).



I want to know what exactly the system does when we use the following commands:



sudo dpkg -l | grep -i ^rc
sudo dpkg -l | grep -i ^rc | cut -d " " -f 3 | xargs dpkg --purge






command-line






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 6 hours ago









dessert

25.7k674108




25.7k674108










asked 6 hours ago









JuanJuan

5604827




5604827













  • dpkg queries list of installed packages, other commands just filter the output

    – Sergiy Kolodyazhnyy
    6 hours ago



















  • dpkg queries list of installed packages, other commands just filter the output

    – Sergiy Kolodyazhnyy
    6 hours ago

















dpkg queries list of installed packages, other commands just filter the output

– Sergiy Kolodyazhnyy
6 hours ago





dpkg queries list of installed packages, other commands just filter the output

– Sergiy Kolodyazhnyy
6 hours ago










1 Answer
1






active

oldest

votes


















4














sudo dpkg -l 


list packages



| grep -i ^rc


that start (^) with rc



| cut -d " " -f 3 


"cut" at the space, select only the 3rd field (-f 3).



| xargs dpkg --purge


and purge it. Example without purging:



$ sudo dpkg -l | grep -i ^rc 
rc linux-image-5.0.0-7-generic 5.0.0-7.8 amd64 Signed kernel image generic
rc linux-modules-5.0.0-7-generic 5.0.0-7.8 amd64 Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc linux-modules-extra-5.0.0-7-generic 5.0.0-7.8 amd64 Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP


$ sudo dpkg -l | grep -i ^rc | cut -d " " -f 3
linux-image-5.0.0-7-generic
linux-modules-5.0.0-7-generic
linux-modules-extra-5.0.0-7-generic





share|improve this answer
























  • Is sudo needed? Does grep’s -i change anything? But that’s the second column… What does removing every rc package do to the system, is it harmful/a good idea/unnecessary/…?

    – dessert
    4 hours ago












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2faskubuntu.com%2fquestions%2f1136176%2fexact-system-actions-when-we-use-this-commands%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














sudo dpkg -l 


list packages



| grep -i ^rc


that start (^) with rc



| cut -d " " -f 3 


"cut" at the space, select only the 3rd field (-f 3).



| xargs dpkg --purge


and purge it. Example without purging:



$ sudo dpkg -l | grep -i ^rc 
rc linux-image-5.0.0-7-generic 5.0.0-7.8 amd64 Signed kernel image generic
rc linux-modules-5.0.0-7-generic 5.0.0-7.8 amd64 Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc linux-modules-extra-5.0.0-7-generic 5.0.0-7.8 amd64 Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP


$ sudo dpkg -l | grep -i ^rc | cut -d " " -f 3
linux-image-5.0.0-7-generic
linux-modules-5.0.0-7-generic
linux-modules-extra-5.0.0-7-generic





share|improve this answer
























  • Is sudo needed? Does grep’s -i change anything? But that’s the second column… What does removing every rc package do to the system, is it harmful/a good idea/unnecessary/…?

    – dessert
    4 hours ago
















4














sudo dpkg -l 


list packages



| grep -i ^rc


that start (^) with rc



| cut -d " " -f 3 


"cut" at the space, select only the 3rd field (-f 3).



| xargs dpkg --purge


and purge it. Example without purging:



$ sudo dpkg -l | grep -i ^rc 
rc linux-image-5.0.0-7-generic 5.0.0-7.8 amd64 Signed kernel image generic
rc linux-modules-5.0.0-7-generic 5.0.0-7.8 amd64 Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc linux-modules-extra-5.0.0-7-generic 5.0.0-7.8 amd64 Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP


$ sudo dpkg -l | grep -i ^rc | cut -d " " -f 3
linux-image-5.0.0-7-generic
linux-modules-5.0.0-7-generic
linux-modules-extra-5.0.0-7-generic





share|improve this answer
























  • Is sudo needed? Does grep’s -i change anything? But that’s the second column… What does removing every rc package do to the system, is it harmful/a good idea/unnecessary/…?

    – dessert
    4 hours ago














4












4








4







sudo dpkg -l 


list packages



| grep -i ^rc


that start (^) with rc



| cut -d " " -f 3 


"cut" at the space, select only the 3rd field (-f 3).



| xargs dpkg --purge


and purge it. Example without purging:



$ sudo dpkg -l | grep -i ^rc 
rc linux-image-5.0.0-7-generic 5.0.0-7.8 amd64 Signed kernel image generic
rc linux-modules-5.0.0-7-generic 5.0.0-7.8 amd64 Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc linux-modules-extra-5.0.0-7-generic 5.0.0-7.8 amd64 Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP


$ sudo dpkg -l | grep -i ^rc | cut -d " " -f 3
linux-image-5.0.0-7-generic
linux-modules-5.0.0-7-generic
linux-modules-extra-5.0.0-7-generic





share|improve this answer













sudo dpkg -l 


list packages



| grep -i ^rc


that start (^) with rc



| cut -d " " -f 3 


"cut" at the space, select only the 3rd field (-f 3).



| xargs dpkg --purge


and purge it. Example without purging:



$ sudo dpkg -l | grep -i ^rc 
rc linux-image-5.0.0-7-generic 5.0.0-7.8 amd64 Signed kernel image generic
rc linux-modules-5.0.0-7-generic 5.0.0-7.8 amd64 Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc linux-modules-extra-5.0.0-7-generic 5.0.0-7.8 amd64 Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP


$ sudo dpkg -l | grep -i ^rc | cut -d " " -f 3
linux-image-5.0.0-7-generic
linux-modules-5.0.0-7-generic
linux-modules-extra-5.0.0-7-generic






share|improve this answer












share|improve this answer



share|improve this answer










answered 5 hours ago









RinzwindRinzwind

211k28406541




211k28406541













  • Is sudo needed? Does grep’s -i change anything? But that’s the second column… What does removing every rc package do to the system, is it harmful/a good idea/unnecessary/…?

    – dessert
    4 hours ago



















  • Is sudo needed? Does grep’s -i change anything? But that’s the second column… What does removing every rc package do to the system, is it harmful/a good idea/unnecessary/…?

    – dessert
    4 hours ago

















Is sudo needed? Does grep’s -i change anything? But that’s the second column… What does removing every rc package do to the system, is it harmful/a good idea/unnecessary/…?

– dessert
4 hours ago





Is sudo needed? Does grep’s -i change anything? But that’s the second column… What does removing every rc package do to the system, is it harmful/a good idea/unnecessary/…?

– dessert
4 hours ago


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • 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%2faskubuntu.com%2fquestions%2f1136176%2fexact-system-actions-when-we-use-this-commands%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

Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...