<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Apt on iniy.org</title><link>https://iniy.org/tags/apt/</link><description>Recent content in Apt on iniy.org</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 12 Apr 2024 10:58:51 +0000</lastBuildDate><atom:link href="https://iniy.org/tags/apt/index.xml" rel="self" type="application/rss+xml"/><item><title>Find all ubuntu packages not from standard repositories</title><link>https://iniy.org/2023/02/find-all-ubuntu-packages-not-from-standard-repositories/</link><pubDate>Fri, 24 Feb 2023 09:55:46 +0000</pubDate><guid>https://iniy.org/2023/02/find-all-ubuntu-packages-not-from-standard-repositories/</guid><description>&lt;p&gt;When upgrading from one ubuntu version to the next one, I like to use the opportunity to do some spring cleaning.&lt;/p&gt;&#10;&lt;p&gt;To find from which repositories a package was installed we can use:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;dpkg -l | grep &amp;#34;ii&amp;#34; | awk &amp;#39;{print $2}&amp;#39; | xargs -n 1 -IX sh -c &amp;#34;apt policy X 2&amp;gt;/dev/null | tr &amp;#39;\n&amp;#39; &amp;#39; &amp;#39;&amp;#34; | tee all_packages.txt&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then we can inspect the all_packages.txt file and filter for packages which are not from the ubuntu repositories.&lt;/p&gt;</description></item></channel></rss>