On 2024-04-17 01:39:48 +0200, Vincent Lefevre wrote: > On 2024-03-11 15:18:44 +0100, Chris Hofstaedtler wrote: > > Thus, a good approximation of the default deborphan functionality > > (no additional options passed) is: > > > > $ apt-mark auto '~i !~M > > (~slibs|~soldlibs|~slibdevel|~sintrospection|~sdebug)' > > possibly followed by > > No, to mimic deborphan, you should exclude ~slibdevel and ~sdebug > from this list. So > > apt-mark auto '~i !~M (~slibs|~soldlibs|~sintrospection)' [...]
I forgot: deborphan also had other rules. Something useful is that it could detect dummy / transitional packages. It seems that apt patterns cannot work on the package description. https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html recommends "Also, it is recommended to adjust its section to oldlibs and its priority to optional in order to ease deborphan's job." but this is not always done (this was not absolutely necessary for deborphan, which could also look at the package descrption, but for apt-mark, this is now a must). -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)