{"id":124,"date":"2017-04-16T15:40:03","date_gmt":"2017-04-16T18:40:03","guid":{"rendered":"https:\/\/www.linuxpro.com.br\/2017\/04\/instalando-irpf-no-linux\/"},"modified":"2026-09-06T10:57:31","modified_gmt":"2026-09-06T13:57:31","slug":"instalando-irpf-no-linux","status":"publish","type":"post","link":"https:\/\/www.linuxpro.com.br\/en\/2017\/04\/instalando-irpf-no-linux\/","title":{"rendered":"Installing IRPF on Linux"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"Escrivaninha no Brasil com o bras\u00e3o oficial da Rep\u00fablica\" src=\"https:\/\/www.linuxpro.com.br\/wp-content\/uploads\/2026\/09\/instalando-irpf-no-linux-hq.webp\" \/><\/p>\n<div style=\"background:#fff8e1;border-left:4px solid #8b1a1a;padding:.8em 1em;margin:1em 0\"><strong>Note (2026):<\/strong> The original how-to installed IRPF 2017 with Oracle Java 8 and the PPA <code data-no-translation=\"\">webupd8team\/java<\/code>. That PPA is dead. Starting with IRPF 2020, the Linux installer <code data-no-translation=\"\">.bin<\/code> already includes the JRE. Below: IRPF 2026 (calendar year 2025), downloaded from gov.br.<\/div>\n<p>The lion still lives on Linux. The Receita Federal's tax return preparation program (PGD) runs on x86_64 with the official installer. You can also file through e-CAC, without downloading anything, or in the Receita Federal app. This post covers the PGD approach on Ubuntu\/Debian.<\/p>\n<p><!-- more --><\/p>\n<h2>Download from the official website<\/h2>\n<p>Receita Federal page: <a href=\"https:\/\/www.gov.br\/receitafederal\/pt-br\/centrais-de-conteudo\/download\/pgd\/dirpf\">Download the Income Tax Program<\/a>. Choose <strong>Linux (.bin)<\/strong>, 64-bit. The name changes with each patch \u2014 in September 2026 the file is <code data-no-translation=\"\">IRPF2026Linux-x86_64v1.5.sh.bin<\/code>. Check the name on the page before running <code data-no-translation=\"\">wget<\/code>.<\/p>\n<p>Official instructions: <a href=\"https:\/\/www.gov.br\/receitafederal\/pt-br\/centrais-de-conteudo\/download\/pgd\/dirpf\/instalacao\">Installation instructions<\/a>. Since IRPF 2020, Java has been bundled in the <code data-no-translation=\"\">.bin<\/code>. Do not install the Oracle PPA, do not run <code data-no-translation=\"\">sudo<\/code> on the installer.<\/p>\n<h2>Install as a regular user<\/h2>\n<pre data-no-translation=\"\"><code class=\"language-bash\" data-no-translation=\"\">mkdir -p ~\/src\/irpf2026 &amp;&amp; cd ~\/src\/irpf2026\ncurl -fLO 'https:\/\/downloadirpf.receita.fazenda.gov.br\/irpf\/2026\/irpf\/arquivos\/IRPF2026Linux-x86_64v1.5.sh.bin'\nchmod +x IRPF2026Linux-x86_64v1.5.sh.bin\n.\/IRPF2026Linux-x86_64v1.5.sh.bin\n<\/code><\/pre>\n<p>The graphical wizard asks for the folder. The default is <code data-no-translation=\"\">~\/ProgramasRFB\/IRPF2026<\/code>. Click Next until finished. Desktop shortcut: if GNOME refuses, right-click \u2192 Allow Launching.<\/p>\n<p>From the terminal:<\/p>\n<pre data-no-translation=\"\"><code class=\"language-bash\" data-no-translation=\"\">~\/ProgramasRFB\/IRPF2026\/IRPF2026\n# ou o JRE embutido:\n~\/ProgramasRFB\/IRPF2026\/jre\/bin\/java -Xms128M -Xmx512M -jar ~\/ProgramasRFB\/IRPF2026\/irpf.jar\n<\/code><\/pre>\n<h2>Cross-platform ZIP and Flatpak<\/h2>\n<p>If <code data-no-translation=\"\">.bin<\/code> hangs (Wayland, a distro without 32-bit libraries, etc.), Receita Federal offers the cross-platform ZIP on the same page. In that case, you do need Java on the system (11+):<\/p>\n<pre data-no-translation=\"\"><code class=\"language-bash\" data-no-translation=\"\">sudo apt install -y default-jre\n# extraia o zip e:\njava -jar irpf.jar\n<\/code><\/pre>\n<p>There is a community package on Flathub (<code data-no-translation=\"\">br.gov.fazenda.receita.irpf2026<\/code>). It is not an official RFB package. Prefer the <code data-no-translation=\"\">.bin<\/code> from gov.br.<\/p>\n<h2>Without installing<\/h2>\n<p>You can also file your return through e-CAC (Meu Imposto de Renda) and the Receita Federal app. PGD is still useful for those who prefer a local program, an amended return for a previous year, or an offline machine.<\/p>\n<h2>What not to do<\/h2>\n<ul>\n<li>PPA <code data-no-translation=\"\">webupd8team\/java<\/code> and Oracle JRE 8u121 from the post of 2017: dead URL, OTN license, do not use.<\/li>\n<li><code data-no-translation=\"\">wget --no-check-certificate<\/code> on Receita Federal's HTTPS: only if ICP-Brasil is missing from the trust store; the default is to verify the certificate.<\/li>\n<li>32-bit installer: Receita Federal no longer publishes one for PGD 2026.<\/li>\n<\/ul>\n<p>Video from 2017 (the simplified return at the time \u2014 the program has changed, the lion has not):<\/p>\n<p><iframe style=\"width:100%;aspect-ratio:16\/9;border:0\" src=\"https:\/\/www.youtube-nocookie.com\/embed\/zT1iET95kaI\" allowfullscreen loading=\"lazy\"><\/iframe><\/p>\n<p>Source: <a href=\"https:\/\/www.gov.br\/receitafederal\/pt-br\/centrais-de-conteudo\/download\/pgd\/dirpf\">gov.br\/receitafederal \u2014 PGD DIRPF<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>The tax lion still lives on Linux. The Brazilian Federal Revenue Service\u2019s tax return program (PGD) runs on x86_64 with the official installer. You can also file through e-CAC without downloading anything, or through the Receita Federal app. This post is the path \u2026 <a title=\"Installing IRPF on Linux\" class=\"read-more\" href=\"https:\/\/www.linuxpro.com.br\/en\/2017\/04\/instalando-irpf-no-linux\/\" aria-label=\"Read more about Instalando o IRPF no Linux\">Read more<\/a><\/p>","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,61,2,3],"tags":[15,14,62,4,5],"class_list":["post-124","post","type-post","status-publish","format-standard","hentry","category-debian","category-irpf","category-linux","category-ubuntu","tag-debian","tag-howto","tag-irpf","tag-linux","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.linuxpro.com.br\/en\/wp-json\/wp\/v2\/posts\/124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxpro.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxpro.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxpro.com.br\/en\/wp-json\/wp\/v2\/comments?post=124"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxpro.com.br\/en\/wp-json\/wp\/v2\/posts\/124\/revisions"}],"predecessor-version":[{"id":620,"href":"https:\/\/www.linuxpro.com.br\/en\/wp-json\/wp\/v2\/posts\/124\/revisions\/620"}],"wp:attachment":[{"href":"https:\/\/www.linuxpro.com.br\/en\/wp-json\/wp\/v2\/media?parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxpro.com.br\/en\/wp-json\/wp\/v2\/categories?post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxpro.com.br\/en\/wp-json\/wp\/v2\/tags?post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}