LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-14-2016, 01:59 AM   #1
Reksio
Member
 
Registered: Mar 2016
Location: 127.0.0.1
Distribution: Fedora, CentOS, RHEL
Posts: 34

Rep: Reputation: Disabled
Dnf autoremove wants to delete everything along with the kernel


Please correct me if I'm wrong but after coming from Ubuntu, and reading some other forums, I thought that "dnf autoremove" essentially plays the same role as "sudo-apt autoremove" in Ubuntu.
I have some left files and dependencies that I don't need and are just lying there doing nothing, so I thought I could use "autoremove" for that. Instead, autoremove wants to delete everything I installed, along with the kernel currently in use. Am I doing something wrong? Is there some other command that could do the job?
 
Old 05-14-2016, 07:29 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
I have some left files and dependencies that I don't need and are just lying there doing nothing, so I thought I could use "autoremove" for that.
I wouldn't do it because it will leave you with and unstable system. Not to mention a system that won't boot.

The dependencies that you say you don't need may be needed by other libraries and applications on your system so be very careful with what you remove.

For files that you don't need use the remove command as root.
Code:
dnf remove <name of file or application>
https://ask.fedoraproject.org/en/que...et-autoremove/
http://forums.fedoraforum.org/showthread.php?t=308832

Last edited by Ztcoracat; 05-14-2016 at 07:36 PM.
 
Old 05-14-2016, 08:46 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Once upon a time, in a century long gone, I may have used similar. I may even have forced the issue, disregarding the warning.
Once.

When dnf support was announced for Fedora, I quickly spied the removal of running kernel protection. What a mob of dicks.
I too would recommend you stay well away from autoremove.
 
Old 05-14-2016, 09:23 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Sadly autoremove wrecked this members install:-
https://ask.fedoraproject.org/en/que...-installation/

-::-All the more reason to not use autoremove.-::-
 
Old 05-14-2016, 11:34 PM   #5
Reksio
Member
 
Registered: Mar 2016
Location: 127.0.0.1
Distribution: Fedora, CentOS, RHEL
Posts: 34

Original Poster
Rep: Reputation: Disabled
Is there any other solution, besides what Ztcoracat said:

Code:
dnf remove <name of file or application>
?
 
Old 05-15-2016, 02:24 AM   #6
tomwest
Member
 
Registered: Aug 2013
Distribution: debian
Posts: 63

Rep: Reputation: Disabled
You could do:
Code:
rpm -e --nodeps <packagename>
which should remove just that package, if it's a package that you want to remove, and rpm won't check dependencies. You need to know what you are doing though.

To remove files, use: rm filename. That's get rid of them for good usually.

Last edited by tomwest; 05-15-2016 at 02:26 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dnf is confused with kernel-devel mshlinux Fedora 3 10-22-2015 09:25 PM
Fedora 22 dnf autoremove removes wanted packages thanquol1313 Linux - Newbie 2 10-20-2015 01:01 PM
[SOLVED] why "dnf autoremove" removed my explicitly installed packages? mshlinux Fedora 1 10-02-2015 03:54 AM
[SOLVED] dnf remove repo, dnf command help ? mshlinux Fedora 2 10-01-2015 10:00 PM
Autoremove again Phiebie Debian 2 03-23-2012 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration