Fedora Linux Support Community & Resources Center
  #1  
Old 17th May 2017, 11:26 AM
Dr Nukular Offline
Registered User
 
Join Date: Jan 2017
Location: Oslo
Posts: 52
linuxfirefox
Removing / deinstalling software on Fedora 25

I have a general question about installing and de-installing software on Fedora 25.

When installing from a .rpm file, why does not every software show up in Fedora's software center?

Some software installed from an rpm file is listed and allows me to remove it again, while some other software is actually not listed. Now the question is, how do I remove that software again, without compromising my system by removing needed dependencies.

Do I use dnf remove or dnf erase or rpm -e ?
Reply With Quote
  #2  
Old 17th May 2017, 03:19 PM
gordon64
Guest
 
Posts: n/a
linuxfedorafirefox
Re: Removing / deinstalling software on Fedora 25

try

Code:
sudo dnf remove <package>
watch if dnf reports it will also move software X, where X is something you still want.

ie not all software can be removed.

credits
PabloTwo for finding my mistakes

Yes X was a generic term for some unknown software package, not Xorg

Last edited by gordon64; 18th May 2017 at 12:59 AM.
Reply With Quote
  #3  
Old 17th May 2017, 03:31 PM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 7,562
linuxchrome
Re: Removing / deinstalling software on Fedora 25

Code:
 Erase Command
       dnf [options] erase <spec>...
              Deprecated alias for the Remove Command.
It's generally never fatal to have a look through the "man" pages.

And I know gordon64 meant to type: sudo dnf remove <package>, but you probably already figured that out.

Quote:
When installing from a .rpm file,.....
You didn't mention how you installed the rpm packages in the first place. Using rpm, dnf, some GUI package manager?
Reply With Quote
  #4  
Old 17th May 2017, 04:16 PM
Dr Nukular Offline
Registered User
 
Join Date: Jan 2017
Location: Oslo
Posts: 52
linuxfirefox
Re: Removing / deinstalling software on Fedora 25

Quote:
Originally Posted by PabloTwo View Post
You didn't mention how you installed the rpm packages in the first place. Using rpm, dnf, some GUI package manager?
I simply double clicked on the rpm file and installed it (what I assume was) through Fedora's software center. However, after the install, it does not show up in the list of installed software. Also, when I double click the file again, it offers me to install the software, which however is already installed. I have the software in the applications menu and I can run it.

---------- Post added at 03:16 PM ---------- Previous post was at 03:15 PM ----------

Quote:
Originally Posted by gordon64 View Post
try

Code:
sudo remove <package>
watch if dnf reports it will also move software X, where X is something you still want.

ie not all software can be removed.

how can I make sure that X is not removed?
Reply With Quote
  #5  
Old 17th May 2017, 04:48 PM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 7,562
linuxchrome
Re: Removing / deinstalling software on Fedora 25

Quote:
how can I make sure that X is not removed?
Where X in this context is a surrogate for some some package name, not X as in Xorg.

1) Don't use Gnome Software, or any other GUI package manager for that matter.
2) Use dnf at the command line and never ever use the -y option when removing a package or packages.

Dnf will show you the full list of packages it intends to remove and will await your input of either yes or no before proceeding.

This forum is rife with threads about the failings/limitations/quirks/mis-behaving nature of Gnome Software (a.k.a. PackageKit). If you want a more consistent and predictable behavior from your package manager, then make it dnf itself. Personally, I haven't used a GUI package manager since about fc8. You can safely ignore the rantings of the few lunatic fringe users who claim that dnf is just another incarnation of the "evil empire".
Reply With Quote
  #6  
Old 17th May 2017, 05:29 PM
Dr Nukular Offline
Registered User
 
Join Date: Jan 2017
Location: Oslo
Posts: 52
linuxfirefox
Re: Removing / deinstalling software on Fedora 25

Quote:
Originally Posted by PabloTwo View Post
Where X in this context is a surrogate for some some package name, not X as in Xorg.
I was actually aware of that and was wondering how to make sure that those packages are not removed along with the one I want to deinstall. That is actually what I'm worried about, that removing one package will automatically remove others that are still needed by the system.

From the man pages:

Code:
dnf [options] remove <package-specs>...
    Removes the specified packages from the system along with any packages depending on the packages being removed.
so basically that means that also packages might be removed that other software depends on?

how can I actually tell or list the packages with cross-dependencies?

Quote:
Originally Posted by PabloTwo View Post
1) Don't use Gnome Software, or any other GUI package manager for that matter.
2) Use dnf at the command line and never ever use the -y option when removing a package or packages.
I appreciate the advise. dnf seems to be the better choice for managing software. Still, I wish the gnome software would be better in handling it.
Reply With Quote
  #7  
Old 17th May 2017, 05:42 PM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 7,562
linuxchrome
Re: Removing / deinstalling software on Fedora 25

Quote:
so basically that means that also packages might be removed that other software depends on?
Well, basically and as a rule of thumb, if other installed packages have a dependency on, say, package X, as well as the package you are uninstalling having a dependency on that same package X, package X will not be removed. That's because other installed packages still need it.

However, if the package you are removing is the only package installed that has a dependency on package X, then package X will most likely be removed along with the package you targeted for removal. That is the default configuration of dnf, as seen in the /etc/dnf/dnf.conf file, with this line:

clean_requirements_on_remove=True

This is the same behavior as the yum "remove-with-leaves" plugin provided.

Edit: Well, now not sure if that is a "default" setting or not, but I have that in my dnf.conf file and may have put it there myself and forgotten.

Last edited by PabloTwo; 17th May 2017 at 05:52 PM.
Reply With Quote
  #8  
Old 17th May 2017, 06:03 PM
Dr Nukular Offline
Registered User
 
Join Date: Jan 2017
Location: Oslo
Posts: 52
linuxfirefox
Re: Removing / deinstalling software on Fedora 25

Quote:
Originally Posted by PabloTwo View Post
Well, basically and as a rule of thumb, if other installed packages have a dependency on, say, package X, as well as the package you are uninstalling having a dependency on that same package X, package X will not be removed. That's because other installed packages still need it.

However, if the package you are removing is the only package installed that has a dependency on package X, then package X will most likely be removed along with the package you targeted for removal. That is the default configuration of dnf, as seen in the /etc/dnf/dnf.conf file, with this line:

clean_requirements_on_remove=True

This is the same behavior as the yum "remove-with-leaves" plugin provided.

Edit: Well, now not sure if that is a "default" setting or not, but I have that in my dnf.conf file and may have put it there myself and forgotten.
Thanks for the explanation! It seems to be the default setting. I found it in my config file, and I don't think I have placed it in there myself.

---------- Post added at 05:03 PM ---------- Previous post was at 04:58 PM ----------

one more thing I would like to know: how can I actually tell if a package is needed by another one? is there a way to list packages that use package X?
Reply With Quote
  #9  
Old 17th May 2017, 06:51 PM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 7,562
linuxchrome
Re: Removing / deinstalling software on Fedora 25

Quote:
one more thing I would like to know: how can I actually tell if a package is needed by another one? is there a way to list packages that use package X?
Dnf can can provide you with that information, but it can get a bit tricky. Many, actually most, of the "requirements" of a package aren't package names themselves but are in the form of a "resource", which dnf can then determine what package provides that "resource". Between rpm (for installed packages) and dnf you can usually figure it out.

Example of rpm to show the "resources" provided by the package xfce4-session:
Code:
$ rpm -q --provides xfce4-session
application()
application(xfce-session-settings.desktop)
application(xfce4-session-logout.desktop)
libmice.so()(64bit)
libxfsm-4.6.so.0()(64bit)
xfce4-session = 4.12.1-9.fc25
xfce4-session(x86-64) = 4.12.1-9.fc25
Example of dnf showing what package(s) provides one of the "resources" shown above:
Code:
$ sudo dnf provides "libxfsm-4.6.so.0()(64bit)"
Last metadata expiration check: 2:46:45 ago on Wed May 17 10:46:14 2017.
xfce4-session-4.12.1-9.fc25.x86_64 : Xfce session manager
Repo        : @System

xfce4-session-4.12.1-9.fc25.x86_64 : Xfce session manager
Repo        : fedora
Example of dnf to show what other packages depend on the xfce4-session package:
Code:
$ sudo dnf repoquery --whatrequires xfce4-session
Last metadata expiration check: 2:50:28 ago on Wed May 17 10:46:14 2017.
xfce4-session-devel-0:4.12.1-9.fc25.i686
xfce4-session-devel-0:4.12.1-9.fc25.x86_64
xfce4-session-engines-0:4.12.1-9.fc25.x86_64
The last command format would be most useful to what you want as it works for both installed and uninstalled packages.

The "man dnf.plugin.repoquery" man page will show you how do some very detailed package information queries.
Reply With Quote
  #10  
Old 17th May 2017, 07:18 PM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 7,562
linuxchrome
Re: Removing / deinstalling software on Fedora 25

And an example of why package name alone won't tell the whole story. Using the "libmad" package as an example:
Code:
$ sudo dnf repoquery --whatrequires libmad
Last metadata expiration check: 3:27:28 ago on Wed May 17 10:46:14 2017.
libmad-devel-0:0.15.1b-17.fc25.i686
libmad-devel-0:0.15.1b-17.fc25.x86_64
Not very realistic. But using one of the "resources" provided by the libmad package shows another story:
Code:
$ sudo dnf repoquery --whatrequires "libmad.so.0()(64bit)"
Last metadata expiration check: 3:26:24 ago on Wed May 17 10:46:14 2017.
aqualung-0:1.0-0.4.rc1git05dfcb7.fc25.x86_64
aqualung-0:1.0-0.6.rc1git72c1ab1.fc25.x86_64
audacity-0:2.1.3-2.fc25.x86_64
audacity-freeworld-0:2.1.3-0.9.20161109git53a5c93.fc25.x86_64
avidemux-libs-0:2.6.12-6.fc25.x86_64
avidemux-libs-0:2.6.20-1.fc25.x86_64
cmus-0:2.7.1-4.fc25.x86_64
dvbcut-0:0.6.1-20.svn179.fc25.x86_64
endless-sky-0:0.9.6-1.fc25.x86_64
gpac-libs-0:0.6.1-2.fc25.x86_64
gstreamer-plugins-ugly-0:0.10.19-19.fc24.x86_64
gstreamer1-plugins-ugly-0:1.10.0-2.fc25.x86_64
gstreamer1-plugins-ugly-0:1.10.4-1.fc25.x86_64
gstreamer1-plugins-ugly-0:1.10.4-3.fc25.x86_64
k3b-extras-freeworld-1:2.0.3-3.fc25.x86_64
kwave-0:0.8.99-7.fc25.x86_64
kwave-0:16.12.2-1.fc25.x86_64
libmad-devel-0:0.15.1b-17.fc25.x86_64
libmad-devel-0:0.15.1b-20.fc25.x86_64
libmp3splt-0:0.9.2-1.fc25.x86_64
madplay-0:0.15.2b-10.fc25.x86_64
madplay-0:0.15.2b-11.fc25.x86_64
mixxx-0:2.0.0-7.fc25.x86_64
moc-0:2.6-0.15.alpha3.fc25.x86_64
moc-0:2.6-0.17.alpha3.fc25.x86_64
mpd-1:0.19.17-3.fc25.x86_64
normalize-0:0.7.7-11.fc25.x86_64
ocp-0:0.1.22-0.10.git849cc42.fc25.x86_64
qmmp-plugins-freeworld-0:1.1.2-1.fc25.x86_64
qtractor-0:0.8.0-1.fc25.x86_64
sonic-visualiser-freeworld-0:2.4.1-1.fc25.x86_64
sox-plugins-freeworld-0:14.4.2-1.fc25.x86_64
streamripper-0:1.64.6-5.fc25.x86_64
terminatorX-0:4.0.1-1.fc25.x86_64
traverso-0:0.49.3-2.fc25.x86_64
vdr-mp3-0:0.10.2-11.fc25.x86_64
vlc-core-0:3.0.0-0.16.fc25.x86_64
vlc-core-0:3.0.0-0.9.fc25.x86_64
xine-lib-0:1.2.6-13.fc25.x86_64
xine-lib-0:1.2.8-1.fc25.x86_64
xmms2-mad-0:0.8-16.fc25.x86_64
Reply With Quote
  #11  
Old 18th May 2017, 12:58 AM
gordon64
Guest
 
Posts: n/a
linuxfedorafirefox
Re: Removing / deinstalling software on Fedora 25

just woke up

sorry for missing out essential word in my post at post 2
I will correct it in case others find by internet search but credit to the guru
Reply With Quote
Reply

Tags
deinstalling, fedora, removing, software

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Software SnoutUK Using Fedora 7 25th June 2006 04:31 PM
Adding and removing software tzu_yih Using Fedora 1 6th June 2006 06:31 PM
Removing non-package software? Flounder Using Fedora 3 8th May 2006 10:59 PM
Deinstalling Windows from machine/grub escantle Installation, Upgrades and Live Media 4 14th October 2005 04:23 PM
Problems with removing software boffin2163 Using Fedora 4 19th March 2004 05:55 AM


Current GMT-time: 20:06 (Wednesday, 20-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat