]> pere.pagekite.me Git - homepage.git/blob - blog/data/2018-07-09-debian-dep11.txt
Generated.
[homepage.git] / blog / data / 2018-07-09-debian-dep11.txt
1 Title: What is the most supported MIME type in Debian in 2018?
2 Tags: english, debian, isenkram
3 Date: 2018-07-09 08:05
4
5 <p>Five years ago,
6 <a href="http://people.skolelinux.org/pere/blog/What_is_the_most_supported_MIME_type_in_Debian_.html">I
7 measured what the most supported MIME type in Debian was</a>, by
8 analysing the desktop files in all packages in the archive. Since
9 then, the DEP-11 AppStream system has been put into production, making
10 the task a lot easier. This made me want to repeat the measurement,
11 to see how much things changed. Here are the new numbers, for
12 unstable only this time:
13
14 <p><strong>Debian Unstable:</strong></p>
15
16 <pre>
17 count MIME type
18 ----- -----------------------
19 56 image/jpeg
20 55 image/png
21 49 image/tiff
22 48 image/gif
23 39 image/bmp
24 38 text/plain
25 37 audio/mpeg
26 34 application/ogg
27 33 audio/x-flac
28 32 audio/x-mp3
29 30 audio/x-wav
30 30 audio/x-vorbis+ogg
31 29 image/x-portable-pixmap
32 27 inode/directory
33 27 image/x-portable-bitmap
34 27 audio/x-mpeg
35 26 application/x-ogg
36 25 audio/x-mpegurl
37 25 audio/ogg
38 24 text/html
39 </pre>
40
41 <p>The list was created like this using a sid chroot: "cat
42 /var/lib/apt/lists/*sid*_dep11_Components-amd64.yml.gz| zcat | awk '/^
43 - \S+\/\S+$/ {print $2 }' | sort | uniq -c | sort -nr | head -20"</p>
44
45 <p>It is interesting to see how image formats have passed text/plain
46 as the most announced supported MIME type. These days, thanks to the
47 AppStream system, if you run into a file format you do not know, and
48 want to figure out which packages support the format, you can find the
49 MIME type of the file using "file --mime &lt;filename&gt;", and then
50 look up all packages announcing support for this format in their
51 AppStream metadata (XML or .desktop file) using "appstreamcli
52 what-provides mimetype &lt;mime-type&gt;. For example if you, like
53 me, want to know which packages support inode/directory, you can get a
54 list like this:</p>
55
56 <p><blockquote><pre>
57 % appstreamcli what-provides mimetype inode/directory | grep Package: | sort
58 Package: anjuta
59 Package: audacious
60 Package: baobab
61 Package: cervisia
62 Package: chirp
63 Package: dolphin
64 Package: doublecmd-common
65 Package: easytag
66 Package: enlightenment
67 Package: ephoto
68 Package: filelight
69 Package: gwenview
70 Package: k4dirstat
71 Package: kaffeine
72 Package: kdesvn
73 Package: kid3
74 Package: kid3-qt
75 Package: nautilus
76 Package: nemo
77 Package: pcmanfm
78 Package: pcmanfm-qt
79 Package: qweborf
80 Package: ranger
81 Package: sirikali
82 Package: spacefm
83 Package: spacefm
84 Package: vifm
85 %
86 </pre></blockquote></p>
87
88 <p>Using the same method, I can quickly discover that the Sketchup file
89 format is not yet supported by any package in Debian:</p>
90
91 <p><blockquote><pre>
92 % appstreamcli what-provides mimetype application/vnd.sketchup.skp
93 Could not find component providing 'mimetype::application/vnd.sketchup.skp'.
94 %
95 </pre></blockquote></p>
96
97 <p>Yesterday I used it to figure out which packages support the STL 3D
98 format:</p>
99
100 <p><blockquote><pre>
101 % appstreamcli what-provides mimetype application/sla|grep Package
102 Package: cura
103 Package: meshlab
104 Package: printrun
105 %
106 </pre></blockquote></p>
107
108 <p>PS: A new version of Cura was uploaded to Debian yesterday.</p>
109
110 <p>As usual, if you use Bitcoin and want to show your support of my
111 activities, please send Bitcoin donations to my address
112 <b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p>