{"id":2408,"date":"2023-09-10T10:45:34","date_gmt":"2023-09-10T08:45:34","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=2408"},"modified":"2023-09-10T10:45:36","modified_gmt":"2023-09-10T08:45:36","slug":"wie-ist-ein-debian-paket-eigentlich-aufgebaut","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/10\/wie-ist-ein-debian-paket-eigentlich-aufgebaut\/","title":{"rendered":"Wie ist ein Debian-Paket eigentlich aufgebaut?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Die meisten Debian-Nutzer, oder auch Ubuntu-Nutzer (<em>dazu z\u00e4hlen nat\u00fcrlich auch darauf basierende Linux-Distributionen<\/em>) kennen Debian-Pakete, je nach Desktop-Umgebung haben solche Pakete unterschiedliche Icons &#8211; hier unter KDE Plasma:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"163\" height=\"127\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket.jpg\" alt=\"\" class=\"wp-image-2409\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">DEB-Pakete werden unter auf Debian basierenden Linux-Distributionen als Installationspakete genutzt, \u00e4hnlich wie die EXE-Dateien unter Windows. Sie beinhalten die ausf\u00fchrbaren Dateien, Anweisungen zur Installation der beinhalteten Software und auch solche zur Deinstallation. Aber auch weitere Informationen. In diesem Beitrag der Linux Bibel \u00d6sterreich sehen wir uns den Inhalt eines Debian-Paketes einmal genauer an.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Wie ist ein Debian-Paket aufgebaut?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Im Grunde handelt es sich bei Debian-Paketen um komprimierte Verzeichnisse, sehen wir uns einmal den Inhalt eines typischen Debian-Paketes an:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"501\" height=\"215\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-1.jpg\" alt=\"\" class=\"wp-image-2410\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-1.jpg 501w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-1-300x129.jpg 300w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Hier finden wir zu Beginn einmal eine Textdatei namens &#8222;<strong>debian-binary<\/strong>&#8222;, diese beinhaltet die Version des genutzten DEB-Paket-Formates. Bei aktuellen Debian-Versionen (<em>Ubuntu-Versionen<\/em>) ist dies die &#8222;<strong>2.0<\/strong>&#8222;:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"155\" height=\"75\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-2.jpg\" alt=\"\" class=\"wp-image-2411\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Weiter finden wir im Debian-Paket zwei weitere komprimierte Dateien namens &#8222;<strong>control.tar.gz<\/strong>&#8220; und &#8222;<strong>data.tar.gz<\/strong>&#8222;. Das komprimierte Archiv mit der Bezeichnung &#8222;<strong>control.tar.gz<\/strong>&#8220; beinhaltet eine reine Textdatei und drei Skripte:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"616\" height=\"225\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-3.jpg\" alt=\"\" class=\"wp-image-2412\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-3.jpg 616w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-3-300x110.jpg 300w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In der &#8222;<strong>control.tar.gz<\/strong>&#8220; sehen wir uns als Erstes einmal die Textdatei namens &#8222;<strong>control<\/strong>&#8220; an. Diese beinhaltet folgende Informationen:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Package:<\/strong>&nbsp;&#8211; Der Name der Software oder des Paketes.<\/li>\n\n\n\n<li><strong>Version:<\/strong>&nbsp;&#8211; Die Version der Software oder des Paketes.<\/li>\n\n\n\n<li><strong>Architecture:<\/strong>&nbsp;&#8211; Die Prozessor-Architektur.<\/li>\n\n\n\n<li><strong>Maintainer:<\/strong>&nbsp;&#8211; Der Ersteller des Paketes, meist mit der Webseite oder der E-Mail-Adresse.<\/li>\n\n\n\n<li><strong>Installed-Size:<\/strong>&nbsp;&#8211; Der Platz, den das komplette installierte Paket auf der Festplatte belegt in Kilobyte.<\/li>\n\n\n\n<li><strong>Pre-Depends:<\/strong>&nbsp;&#8211; Die wichtigste Abh\u00e4ngigkeit &#8211; meist das Paket &#8222;<strong>dpkg<\/strong>&#8220; in der gew\u00fcnschten Version.<\/li>\n\n\n\n<li><strong>Depends:<\/strong>&nbsp;&#8211; Von der Software ben\u00f6tigte Abh\u00e4ngigkeiten, wenn ben\u00f6tigt, mit der gew\u00fcnschten Version.<\/li>\n\n\n\n<li><strong>Recommends:<\/strong>&nbsp;&#8211; Nicht unbedingt ben\u00f6tigte, aber vorgeschlagene Abh\u00e4ngigkeiten.<\/li>\n\n\n\n<li><strong>Provides:<\/strong>&nbsp;&#8211; Ein virtuelles Paket, eher weniger wichtig.<\/li>\n\n\n\n<li><strong>Section:<\/strong>&nbsp;&#8211; In dieser Kategorie landet das Paket in der Paket-Verwaltung, im Anwendungsmen\u00fc.<\/li>\n\n\n\n<li><strong>Priority:<\/strong>&nbsp;&#8211; Ist das Paket essenziell f\u00fcr das Funktionieren des Systems oder nicht?<\/li>\n\n\n\n<li><strong>Description:<\/strong>&nbsp;&#8211; Eine Beschreibung der Software, des Paketes.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"181\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-4-1024x181.jpg\" alt=\"\" class=\"wp-image-2413\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-4-1024x181.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-4-300x53.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-4-768x136.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-4-1536x272.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-4.jpg 1749w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Weiters beinhaltet die &#8222;<strong>control.tar.gz<\/strong>&#8220; folgende Skripte:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>postinst<\/strong>&nbsp;&#8211; Anweisungen f\u00fcr die Installation des Paketes.<\/li>\n\n\n\n<li><strong>postrm<\/strong>&nbsp;&#8211; Anweisungen, die vor der Deinstallation des Paketes durchgef\u00fchrt werden.<\/li>\n\n\n\n<li><strong>prerm<\/strong>&nbsp;&#8211; Anweisungen, die nach der Deinstallation des Paketes durchgef\u00fchrt werden.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt gelangen wir zum Inhalt der komprimierten Datei namens &#8222;<strong>data.tar.gz<\/strong>&#8222;. Diese beinhaltet die eigentliche Software und alles was dazu geh\u00f6rt, also ausf\u00fchrbare Dateien, Einstellungen, Icons &#8211; alles so in Verzeichnissen aufgelistet, wie die Dateien im System landen sollen:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-5-1024x576.jpg\" alt=\"\" class=\"wp-image-2414\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-5-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-5-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-5-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-5-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-5.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Entpacken l\u00e4sst sich so ein Debian-Paket ganz einfach mit einem beliebigen Archiv-Programm &#8211; hier etwa mit Ark unter KDE:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-6-1024x576.jpg\" alt=\"\" class=\"wp-image-2415\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-6-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-6-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-6-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-6-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/debian-paket-6.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\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=\"2408\" 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\">1    <\/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=\"2408\" 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>Die meisten Debian-Nutzer, oder auch Ubuntu-Nutzer (dazu z\u00e4hlen nat\u00fcrlich auch darauf basierende Linux-Distributionen) kennen Debian-Pakete, je nach Desktop-Umgebung haben solche Pakete unterschiedliche Icons &#8211; hier unter KDE Plasma: DEB-Pakete werden unter auf Debian basierenden Linux-Distributionen als Installationspakete genutzt, \u00e4hnlich wie die EXE-Dateien unter Windows. Sie beinhalten die ausf\u00fchrbaren Dateien, Anweisungen zur Installation der beinhalteten Software [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2391,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[301],"tags":[302],"class_list":["post-2408","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-begriffe-erklaerungen","tag-begriffe-erklaerungen"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/2408","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=2408"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/2408\/revisions"}],"predecessor-version":[{"id":2416,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/2408\/revisions\/2416"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/2391"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=2408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=2408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=2408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}