Whenever there is a new release of Raspberry Pi OS I always wonder what pre-installed packages are available by default. Sometimes this affects my old tutorials as I want to know if I need to bother telling people to install packages that are now included by default.
The latest version of Raspberry Pi OS is always available from the Official Downloads page.
The pre-installed packages marked as “automatic” can be listed using :
apt-mark showauto
Those marked as manually installed can be listed using :
apt-mark showmanual
If you want to save the list as a text file you can use :
apt-mark showauto > packagelist.txt
or
apt-mark showmanual > packagelist.txt
There are usually 400-500 packages.
You can list packages with specific text in the title using “grep”. In the example below we can list all the pre-installed packages with “spi” in the title :
apt-mark showauto | grep spi
1 Comment
You can list all installed packages with “dpkg -l” to a file you would use “dpkg -l > installed.txt”.