LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Removing un-needed programs (https://www.linuxquestions.org/questions/linux-software-2/removing-un-needed-programs-4175503067/)

ghostinthecode 04-26-2014 12:05 PM

Removing un-needed programs
 
My problem all started with Firefox. I, like many other's I found, was having issues with Firefox freezing up. Looking for other options, I installed Konqueror, which I didn't really like. I eventualy solved my Firefox problems, and removed Konqueror.

Now, I run Fedora 19 with the gnome desktop on a slightly older laptop, so when I removed Konqueror, I decided to remove a few programs that I hadn't used yet(almost a year after installing the OS), or didn't plan to use in the near future. Sorting through, I found nepomuck backup and cleaner. After a little research I found out these are KDE programs, and were likely installed as dependancies for Konqueror. I found the binary files under /bin, but for some reason cannot remove then. Running

sudo yum remove nepomukbackup

for example, returns:

Loaded plugins: langpacks, refresh-packagekit
No Match for argument: nepomukbackup
No Packages marked for removal


I tried again, thinking I mistyped the name, and instead copy-pasted it direclty from the listing after running ls | grep nepomuk. Same thing. I know it's there, but for some reason yum remove doesn't recognize it.

There is no reason to have these KDE programs on my machine, as I had already removed Konqueror. Any suggestions?

DJ Shaji 04-26-2014 12:48 PM

To find out which package a file belongs to, use the helpful
Code:

rpm -qf <file name>
Apparently nepomukbackup belongs to nepomuk-core-4.10.5-1.fc17

So you have to run
Code:

nepomuk-core-4.10.5-1.fc17
rpm has tonnes of query optinos that let you search for all kinds of information about packages.
Code:

rpm -ql
lists all files in a package, for example. Running it on the package in question gives

Code:

dj@love:~$ rpm -ql nepomuk-core-4.10.5-1.fc17.x86_64
/usr/bin/nepomuk-simpleresource-rcgen
/usr/bin/nepomuk2-rcgen
/usr/bin/nepomukbackup
/usr/bin/nepomukcleaner
/usr/bin/nepomukindexer
/usr/bin/nepomukserver
/usr/bin/nepomukservicestub
/usr/lib64/kde4/nepomukexiv2extractor.so
/usr/lib64/kde4/nepomukfileindexer.so
/usr/lib64/kde4/nepomukfilewatch.so
/usr/lib64/kde4/nepomukplaintextextractor.so
/usr/lib64/kde4/nepomukpopplerextractor.so
/usr/lib64/kde4/nepomukstorage.so
/usr/lib64/kde4/nepomuktaglibextractor.so
/usr/lib64/libkdeinit4_nepomukserver.so
/usr/share/applications/kde4/nepomukbackup.desktop
/usr/share/applications/kde4/nepomukcleaner.desktop
/usr/share/autostart/nepomukserver.desktop
/usr/share/dbus-1/interfaces/org.kde.NepomukServer.xml
/usr/share/dbus-1/interfaces/org.kde.nepomuk.BackupManager.xml
/usr/share/dbus-1/interfaces/org.kde.nepomuk.DataManagement.xml
/usr/share/dbus-1/interfaces/org.kde.nepomuk.FileIndexer.xml
/usr/share/dbus-1/interfaces/org.kde.nepomuk.OntologyManager.xml
/usr/share/dbus-1/interfaces/org.kde.nepomuk.Query.xml
/usr/share/dbus-1/interfaces/org.kde.nepomuk.QueryService.xml
/usr/share/dbus-1/interfaces/org.kde.nepomuk.ResourceWatcher.xml
/usr/share/dbus-1/interfaces/org.kde.nepomuk.ResourceWatcherConnection.xml
/usr/share/dbus-1/interfaces/org.kde.nepomuk.ServiceControl.xml
/usr/share/dbus-1/interfaces/org.kde.nepomuk.ServiceManager.xml
/usr/share/dbus-1/interfaces/org.kde.nepomuk.Storage.xml
/usr/share/doc/nepomuk-core-4.10.5
/usr/share/doc/nepomuk-core-4.10.5/COPYING.LGPL-2
/usr/share/doc/nepomuk-core-4.10.5/COPYING.LGPL-2.1
/usr/share/doc/nepomuk-core-4.10.5/COPYING.LGPL-3
/usr/share/doc/nepomuk-core-4.10.5/README
/usr/share/doc/nepomuk-core-4.10.5/nepomuk-inotify.conf
/usr/share/kde4/apps/fileindexerservice
/usr/share/kde4/apps/fileindexerservice/nepomukfileindexer.notifyrc
/usr/share/kde4/apps/nepomukfilewatch
/usr/share/kde4/apps/nepomukfilewatch/nepomukfilewatch.notifyrc
/usr/share/kde4/apps/nepomukstorage
/usr/share/kde4/apps/nepomukstorage/nepomukstorage.notifyrc
/usr/share/kde4/services/nepomukactivitiesservice.desktop
/usr/share/kde4/services/nepomukbackupsync.desktop
/usr/share/kde4/services/nepomukexiv2extractor.desktop
/usr/share/kde4/services/nepomukfileindexer.desktop
/usr/share/kde4/services/nepomukfilewatch.desktop
/usr/share/kde4/services/nepomukontologyloader.desktop
/usr/share/kde4/services/nepomukplaintextextractor.desktop
/usr/share/kde4/services/nepomukpopplerextractor.desktop
/usr/share/kde4/services/nepomukqueryservice.desktop
/usr/share/kde4/services/nepomukremovablestorageservice.desktop
/usr/share/kde4/services/nepomukstorage.desktop
/usr/share/kde4/services/nepomukstrigiservice.desktop
/usr/share/kde4/services/nepomuktaglibextractor.desktop
/usr/share/kde4/servicetypes/nepomukextractor.desktop
/usr/share/kde4/servicetypes/nepomukservice.desktop
/usr/share/ontology/kde
/usr/share/ontology/kde/kext.ontology
/usr/share/ontology/kde/kext.trig
/usr/share/ontology/kde/kuvo.ontology
/usr/share/ontology/kde/kuvo.trig
/usr/share/ontology/kde/nrio.ontology
/usr/share/ontology/kde/nrio.trig

Happy uninstalling!

ghostinthecode 04-26-2014 02:44 PM

So, now what
 
Alright. Using rpm -qf nepomukbackup the current version I have is nepomuk-core-4.11.5-1.fc19.x86_64. I tried to run rpm -e nepomuk-core-4.11.5-1.fc19.x86_64, and it came back two dependancies. The first was nepomuk-core-libs-4.11.5-1.fc19.x86_64. When I ran rpm -e on it, it came back failed due to dependancy on nepomuk-core-4.11.5-1.fc19.x86_64. It's a catch 22. I'm new to using rpm directly. Is there an easy way to handle this dependancy issue?

ondoho 04-26-2014 03:19 PM

there isn't. i've been there.
not with kde, but the scenario is the same.
that's why it's called desktop environment - there's all those interdependencies and as long as you use the DE as it is, that's a good thing.

as i said, i've been there, and in the long run the best and maybe only real solution is to go the other way:
install a barebones system and start padding it out with what you need - and only what you need.

as an example, this worked nicely with my current archlinux install. i'm running a "homebrew" openbox environment and i'm totally satisfied. wasn't too difficult either.
whenever i install a new app i look closely what dependencies it wants to pull in, and if it seems too much i choose something else.

DJ Shaji 04-26-2014 03:20 PM

DJ Shaji likes this
 
Quote:

Originally Posted by ghostinthecode (Post 5159702)
Alright. Using rpm -qf nepomukbackup the current version I have is nepomuk-core-4.11.5-1.fc19.x86_64. I tried to run rpm -e nepomuk-core-4.11.5-1.fc19.x86_64, and it came back two dependancies. The first was nepomuk-core-libs-4.11.5-1.fc19.x86_64. When I ran rpm -e on it, it came back failed due to dependancy on nepomuk-core-4.11.5-1.fc19.x86_64. It's a catch 22. I'm new to using rpm directly. Is there an easy way to handle this dependancy issue?

:)

Yes there is, Kevin!
Code:

rpm -e nepomuk-core-4.11.5-1.fc19.x86_64 nepomuk-core-libs-4.11.5-1.fc19.x86_64
btw you could yum remove them too.

ghostinthecode 04-26-2014 03:33 PM

Solved
 
Thanks for the help all. I eventually just started copy-pasting the programs that had what I found as a dependancy, then ran again, and copy-pasted again, until it removed everything.

And to onoho, I'm not running kde as a desktop environment. I'm running GNOME. These programs were installed as dependancies when I installed Konqueror. It's not an integrated part of my system, just a bunch of files that, now that I've removed Konqueror, serve no purpose.

John VV 04-26-2014 06:37 PM

before you put too much work into fedora 19
it WILL be going End Of Life in 4 months
after August ( or 30 days after fedora 21 is released) there will be NO support
No security updates , no nothing


so you might want to install Fedora 20
THEN
remove any unneeded software


All times are GMT -5. The time now is 10:36 PM.