We have moved to a new Sailfish OS Forum. Please start new discussions there.
2

erasing an openrepos app completely (Leftover files hard to delete...)

asked 2019-09-26 19:48:44 +0300

Yusssufff gravatar image

updated 2019-09-27 19:07:10 +0300

hi sailors! i did install some apps from openrepos, such as storeman from osetr. then i decided to erase them. But now that the apps are erased, i can still find traces of them in the file manager (Such as ssu_openepos-oestr_release... or other files seemingly connected to the zypp file). the file manager refuses to erase these files even if the app is already erased, writing 'permission denied'.

without being a developper and opening the terminal, how could i simply clean my phone from those left over files?

thanks a lot.

here the pictures of the files and the denial: image description image description

edit retag flag offensive close delete

Comments

2

This is a problem with authors not setting the spec file to clean up after uninstallation. I am told this is quite normal.

Personally, I think you should contact the author of the app and ask them to help you clean up.

RPM won't delete any files it doesn't know about, so if new files have been created in a directory that are not part of a package, RPM won't remove them, or the directories.

It will delete the directories if they are empty and it knows about them. It depends how the spec file was written.

Spam Hunter ( 2019-09-26 21:26:13 +0300 )edit

@Yusssufff, now that you named specific files (by uploading a two screenshots), it is obvious that everything is fine and you should not touch these files manually.
They are not "leftovers" by Storeman, but belong to zypper / libzypp. They are absolutely harmless.

P.S.: Original question (above) crossposted at OpenRepos.

olf ( 2019-09-27 20:38:41 +0300 )edit

hi! so you mean these files/folders will hang out there forever in the zypper?

Yusssufff ( 2019-09-27 22:20:24 +0300 )edit

Not necessarily.

olf ( 2019-09-28 00:36:34 +0300 )edit

3 Answers

Sort by » oldest newest most voted
0

answered 2019-09-28 12:16:34 +0300

Spam Hunter gravatar image

updated 2019-09-28 12:21:04 +0300

@Yusssufff - you must use terminal, there is no other way.

ANY File Manager will only allow you to delete something IF the files permissions are already changed, you must make these permission changes using terminal, you have no other choice.

Activate terminal, set a password (remember it!) and type;

devel-su nano rm -r /home/.pk-zypp-dist-upgrade-cache/packages/openrepos-osetr

The above line will finally delete, but it also does not harm to leave them there, it really is a bit of an odd hang up to so desperately want to remove a file entry in an area of your device you'll never really need to deal with.

nano is a file editor, it may not be installed on your device seeing as Vim seems to be the default, I personally do not like Vim, it is too complicated and unintuitive, at least for me.

You can install nano using terminal (your best friend!) with devel-su pkcon install nano

edit flag offensive delete publish link more
3

answered 2019-09-27 10:35:32 +0300

DrYak gravatar image

basically, you can't

without being a developper and opening the terminal, how could i simply clean my phone from those left over files?

For the developer part:

Normally on unix systems, you can only manipulate files to which you do have access right (either you're the owner of the files - on Sailfish that would be user 'nemo' - or the access rights need to be set accordingly - e.g. a universally writeable file with chmod rw-rw-rw-).

To access a files without rights, you'd need to be root - on Sailfish you'd need the developer mode and then run devel-su.

(or install a file manager that runs as root if you more GUI than CLI)

Simply clean :

As mentioned by @Edz, for a simple and automatic cleanup, you'd need the package to correctly specify what needs to be cleaned up. This way the package manager knows what to remove upon deinstallation of a given App package.

It seems that the author in your case has made a mistake and forgotten something, thus files are left behind. Saddly in my experience it's a very common situation.


So either you need dev mode to go root and do the cleanup yourself. Or you need to pester the author until they fix their package clean up.

edit flag offensive delete publish link more

Comments

Thanks for the details...Wich file manager would run as root, foundable in jolla store?

Yusssufff ( 2019-09-27 18:15:37 +0300 )edit
0

answered 2019-09-26 20:29:46 +0300

g gravatar image

updated 2019-09-26 20:39:47 +0300

Have you tried installing (and running) Mashka app? Pay attention to Settings/Advanced settings (at your own risk)

edit flag offensive delete publish link more

Comments

sure. but mashka isnt erasing those files...

Yusssufff ( 2019-09-26 20:44:14 +0300 )edit

Its not really as straightforward as 'developers not cleaning up after deinstallation'. As author of amazfish, if the user uninstalls the app, should I also delete all his activity database and gpx files? Just giving another perspective.

pigg ( 2019-09-27 22:33:29 +0300 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2019-09-26 19:48:44 +0300

Seen: 669 times

Last updated: Sep 27 '19