{"id":506,"date":"2023-09-02T20:49:31","date_gmt":"2023-09-02T18:49:31","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=506"},"modified":"2023-09-02T20:49:32","modified_gmt":"2023-09-02T18:49:32","slug":"debian-goodies-kleine-nette-funktionen-unter-dem-terminal-unter-debian","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/02\/debian-goodies-kleine-nette-funktionen-unter-dem-terminal-unter-debian\/","title":{"rendered":"Debian Goodies &#8211; Kleine, nette Funktionen unter dem Terminal unter Debian"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Debian hat die gr\u00f6\u00dfte Entwicklergemeinde aller Linux-Distributionen hinter sich, da machen sich nat\u00fcrlich auch so einige ihre Gedanken &#8211; was kann man hier besser machen, was dort? Was k\u00f6nnte bei diesem Problem helfen, was bei dem anderen?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Es gibt immer so einige Software-Pakete unter Debian &#8211; meist recht versteckt, die einem das Arbeiten mit Debian in gewissen Situationen erleichtert. Ein solches Paket nennt sich nun ganz einfach &#8222;<strong>debian-goodies<\/strong>&#8222;.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Debian Goodies installieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Am schnellsten gelingt die Installation als\u00a0Administrator\u00a0am\u00a0Terminal\u00a0mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install debian-goodies<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Debian Goodies nutzen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Das Paket stellt nicht eine einzelne Software dar, es handelt sich um eine kleinere Anzahl an Skripts &#8211; jedes hat seine eigene Aufgabe.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>dglob<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">dglob erstellt eine Liste aus installierten Debian-Paketen nach Ihrer Vorgabe. Nehmen wir einmal an, Sie wollen alle Pakete mit dem Begriff &#8222;<strong>firefox<\/strong>&#8220; sehen &#8211; der Befehl lautet in diesem Fall ganz einfach:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dglob firefox<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dglob-1024x618.jpg\" alt=\"\" class=\"wp-image-507\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dglob-1024x618.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dglob-300x181.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dglob-768x464.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dglob.jpg 1356w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nutzen Sie zus\u00e4tzlich die Option &#8222;<strong><code>-f<\/code><\/strong>&#8222;, werden alle installierten Dateien des angegebenen Paketes angezeigt:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dglob -f firefox<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dglob-1-1024x618.jpg\" alt=\"\" class=\"wp-image-508\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dglob-1-1024x618.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dglob-1-300x181.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dglob-1-768x464.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dglob-1.jpg 1356w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>dgrep<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">dgrep such nach Dateien in Paketen von Ihnen angegebenen Mustern &#8211; hierzu nutzen Sie die Option &#8222;<strong><code>-e<\/code><\/strong>&#8222;, um etwa nach Dateien im Pakete &#8222;<strong>kmail<\/strong>&#8222;, die &#8222;<strong>pdf<\/strong>&#8220; im Dateinamen haben, zu suchen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dgrep -e pdf kmail<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dgrep-1024x618.jpg\" alt=\"\" class=\"wp-image-509\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dgrep-1024x618.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dgrep-300x181.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dgrep-768x464.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dgrep.jpg 1356w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>dpigs<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">dpigs zeigt die gr\u00f6\u00dften installierten Pakete an, also diese Pakete, die am meisten Platz im System ben\u00f6tigen. Um eine besser verst\u00e4ndliche Dateigr\u00f6\u00dfe zu erhalten, nutzt man die Option &#8222;<strong><code>-H<\/code><\/strong>&#8222;:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dpigs-1024x618.jpg\" alt=\"\" class=\"wp-image-510\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dpigs-1024x618.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dpigs-300x181.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dpigs-768x464.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/dpigs.jpg 1356w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Standardm\u00e4\u00dfig zeigt die Software die zehn gr\u00f6\u00dften Pakete an, m\u00f6chten Sie die Anzahl selbst vorgeben, nutzen Sie zus\u00e4tzlich die Option &#8222;<strong><kbd><code>-n Anzahl<\/code><\/kbd><\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dpigs -H -n 18<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>debget<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">debget l\u00e4dt die angegebenen Debian-Pakete aus dem Repository herunter, um beispielsweise das Paket &#8222;<strong>tar<\/strong>&#8220; herunterzuladen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>debget tar<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debget-1024x618.jpg\" alt=\"\" class=\"wp-image-511\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debget-1024x618.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debget-300x181.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debget-768x464.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debget.jpg 1356w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>debmany<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">debmany zeigt die Manpages installierter und nicht installierter Pakete. Um beispielsweise die Manpage des Paketes &#8222;<strong>dc<\/strong>&#8220; anzuzeigen (<em>unter KDE<\/em>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>debmany -k dc<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debmany-1024x618.jpg\" alt=\"\" class=\"wp-image-512\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debmany-1024x618.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debmany-300x181.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debmany-768x464.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debmany.jpg 1356w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Unter GNOME verwenden Sie statt &#8222;<strong><code>-k<\/code><\/strong>&#8220; die Option &#8222;<strong><code>-g<\/code><\/strong>&#8222;. Unter anderen Desktop-Umgebungen nutzen Sie die Option &#8222;<strong><code>-x<\/code><\/strong>&#8222;, es \u00f6ffnet sich je nach Desktop die passende Hilfe &#8211; hier unter KDE:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>checkrestart<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Ist es n\u00f6tig nach dem Updates des Systems dieses neu zu starten? checkrestart zeigt es &#8211; Sie nutzen ganz einfach die Option &#8222;<strong><code>-a<\/code><\/strong>&#8220; (<em>nur mit administrativen Rechten<\/em>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>checkrestart -a<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/checkrestart-1024x618.jpg\" alt=\"\" class=\"wp-image-513\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/checkrestart-1024x618.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/checkrestart-300x181.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/checkrestart-768x464.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/checkrestart.jpg 1356w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>popbugs<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Sind Sie auf der Suche nach Fehlern im System? Ist der Fehler schon bekannt &#8211; popbugs zeigt diese sofort im Webbrowser an &#8211; einfach:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>popbugs<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"543\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/popbugs-1024x543.jpg\" alt=\"\" class=\"wp-image-514\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/popbugs-1024x543.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/popbugs-300x159.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/popbugs-768x407.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/popbugs-1536x814.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/popbugs.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>which-pkg-broke<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Ein Paket installiert und auf einmal meldet das System ein fehlerhaftes Paket im System, which-pkg-broke zeigt um welche Pakete es sich handelt &#8211; ganz einfach f\u00fcr das Paket &#8222;<strong>kmail<\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>which-pkg-broke kmail<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Weiteres<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Die in diesem Artikel verwendeten Optionen sind noch lange nicht alle &#8211; \u00f6ffnen Sie einfach nur einmal die Manpage zu einem der Befehle.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"506\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"506\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Debian hat die gr\u00f6\u00dfte Entwicklergemeinde aller Linux-Distributionen hinter sich, da machen sich nat\u00fcrlich auch so einige ihre Gedanken &#8211; was kann man hier besser machen, was dort? Was k\u00f6nnte bei diesem Problem helfen, was bei dem anderen? Es gibt immer so einige Software-Pakete unter Debian &#8211; meist recht versteckt, die einem das Arbeiten mit Debian [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":512,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[12,7,6],"class_list":["post-506","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-terminal","tag-kommandozeile","tag-shell","tag-terminal"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=506"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/506\/revisions"}],"predecessor-version":[{"id":515,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/506\/revisions\/515"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/512"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}