DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4 Weeks Ago
gustaf gustaf is offline
Fdisk Soldier
 
Join Date: Dec 2016
Posts: 51
Default /usr/local/share/mime/application--How to delete files?

Scrolling through /usr/local/share/mime/application, I see files that appear to be left over from packages that I installed and later removed. I thought $ doas pkg_delete -ac [package] was supposed to remove all files related to the package, except the configuration files deposited in the user's home folder.

Is there a command to safely clean up this folder?

I don't use a desktop environment or file manager, only jwm for window management.

Thanks.

Last edited by gustaf; 4 Weeks Ago at 06:07 AM. Reason: Better title
Reply With Quote
  #2   (View Single Post)  
Old 4 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,868
Default

These files are not part of package packing lists, which is why they are not deleted by pkg_delete. (I know this by using the -E flag of pkg_info(1) on them.)

I don't know their provenance. They appear to all have the same date/time, so may have been created by pkg_add(1). Perhaps pkg_check(8) will inspect the directory and remove extraneous files.
Reply With Quote
  #3   (View Single Post)  
Old 4 Weeks Ago
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,326
Default

Quote:
I don't know their provenance.
Say you are constructing a presentation in Libreoffice and wish to insert a png graphic. After selecting the graphic, Libreoffice allows you to open the graphic in an external editor. Both inkscape and gimp pop-up as choices to edit the png. This is handled by mimetypes. It is kinda like a mailcap in mutt.

Quote:
They appear to all have the same date/time, so may have been created by pkg_add(1)
I think this is done by an update-mime-database command in the PLIST. The consistent time/date stamps likely represent the last time the update-mime-database command was run.

Quote:
Is there a command to safely clean up this folder?
I do not know this for a fact but the update-mime-database(1) would be worth testing.

Note to forum admins: OpenBSD's manpage does not link - I substituted FreeBSD's.

Last edited by shep; 4 Weeks Ago at 04:00 PM.
Reply With Quote
  #4   (View Single Post)  
Old 4 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,868
Default

Ah! Thank you! I haven't paid enough attention to freedesktop.org applications.
Reply With Quote
Reply

Thread Tools
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
nnn: How do you copy, move and delete files? Prevet OpenBSD Packages and Ports 7 26th May 2019 02:18 PM
pcmanfm-qt requires refresh to determine MIME type of new files brudan OpenBSD Packages and Ports 6 16th April 2019 03:28 PM
Delete Files By Schedule Continued plexter OpenBSD General 4 28th June 2008 03:43 AM
Delete Files By Schedule plexter OpenBSD General 12 4th June 2008 10:15 PM
/usr/local and application directories ducu_00 FreeBSD Ports and Packages 14 23rd May 2008 05:37 PM


All times are GMT. The time now is 01:33 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick