{"id":97,"date":"2018-04-18T15:25:55","date_gmt":"2018-04-18T13:25:55","guid":{"rendered":"https:\/\/ubuntu.dirkschmidtke.de\/?post_type=portfolio&#038;p=97"},"modified":"2024-08-26T20:23:33","modified_gmt":"2024-08-26T18:23:33","slug":"rar-und-unrar","status":"publish","type":"portfolio","link":"https:\/\/ubuntu.dirkschmidtke.de\/en\/portfolio\/rar-unrar\/","title":{"rendered":"Rar and unrar"},"content":{"rendered":"<p><a href=\"https:\/\/de.wikipedia.org\/wiki\/RAR_(Dateiformat)\" target=\"_blank\" rel=\"noopener\">Rar<\/a> ist a proprietary archiving algorithm, being published as shareware. The Debian package of Rar supplied by Ubuntu is also subject to such a <a href=\"http:\/\/changelogs.ubuntu.com\/changelogs\/pool\/multiverse\/r\/rar\/rar_5.5.0-1\/copyright\" target=\"_blank\" rel=\"noopener\">license<\/a>, according to which the packing program may be tested for 40 days before it must then be deleted, unless a single or multi-user license is purchased..<\/p>\n<p>For unpacking rar archives, unrar is a proprietary but free program. After installation, unrar is also used by the graphical archive front-ends (File Roller etc.) to extract files, so that it is sufficient to click on a .rar file in the file manager on the desktop to unpack its contents. On the Gnome desktop, for example, you can right-click to select either \u201cExtract\u201d or \u201cExtract to\u201d.<\/p>\n<p>In the terminal there are more options:<\/p>\n<pre>unrar e \/path\/to\/archive.rar\r\nunrar x \/path\/to\/archive.rar\r\nunrar -kb x \/path\/to\/archive.part001.rar<\/pre>\n<p>The first example uses the command &#8220;e&#8221; to extract files in a &#8220;flat&#8221; ignoring paths in the archive, if any. The command &#8220;x&#8221; however restores paths as well.<\/p>\n<p>Large archives often consist of several files, recognizable by the consecutive numbering. Such archives are opened by using unrar with the first partial file&#8217;s name as seen in example 3. The following files are then unpacked automatically by unrar. If a partial file is missing, unrar aborts the unpacking process. If the \u201c-kb\u201d<em> (keep broken)<\/em> switch is used, unrar will not delete the part already unpacked.<\/p>\n<h3>Installation<\/h3>\n<p>If you only want to unpack rar files, install unrar:<\/p>\n<pre>sudo apt install unrar<\/pre>\n<p>In order to pack files, install the rar shareware:<\/p>\n<pre>sudo apt install rar<\/pre>\n<h3>Alternativen<\/h3>\n<p><a href=\"https:\/\/de.wikipedia.org\/wiki\/Gzip\" target=\"_blank\" rel=\"noopener\">gzip<\/a> and <a href=\"https:\/\/de.wikipedia.org\/wiki\/Bzip2\" target=\"_blank\" rel=\"noopener\">bzip2<\/a> are tools that every Linux distributionen has to offer; bzip2 has a better coompression, gzip is faster. The <a href=\"https:\/\/de.wikipedia.org\/wiki\/ZIP-Dateiformat\" target=\"_blank\" rel=\"noopener\">zip<\/a> format, popular on Windows, is in the public domain and can be used without problems in Lnux, but it is not very capable. The more modern <a href=\"https:\/\/de.wikipedia.org\/wiki\/7z\" target=\"_blank\" rel=\"noopener\">7z<\/a> yields better results, well known in the Windows world thanks to the 7-Zip program, in Linux <a href=\"http:\/\/p7zip.sourceforge.net\/\" target=\"_blank\" rel=\"noopener\">P7ZIP<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Rar ist a proprietary archiving algorithm, being published as shareware. The Debian package of Rar supplied by Ubuntu is also subject to such a license, according to which the packing program may be tested for 40 days before it must then be deleted, unless a single or multi-user license is purchased.. For unpacking rar archives, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":99,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"portfolio_category":[6],"portfolio_tag":[],"class_list":["post-97","portfolio","type-portfolio","status-publish","has-post-thumbnail","hentry","portfolio_category-datei-programme"],"_links":{"self":[{"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/portfolio\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/portfolio"}],"about":[{"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/types\/portfolio"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/comments?post=97"}],"version-history":[{"count":3,"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/portfolio\/97\/revisions"}],"predecessor-version":[{"id":887,"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/portfolio\/97\/revisions\/887"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/media\/99"}],"wp:attachment":[{"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/media?parent=97"}],"wp:term":[{"taxonomy":"portfolio_category","embeddable":true,"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/portfolio_category?post=97"},{"taxonomy":"portfolio_tag","embeddable":true,"href":"https:\/\/ubuntu.dirkschmidtke.de\/en\/wp-json\/wp\/v2\/portfolio_tag?post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}