This approach allows you to install a *-build-deps
package that can be easily apt autoremove
d later when you don't need the dependencies anymore.
- Install packaging tools:
sudo apt install devscripts equivs
- Generate a
build-deps
package (in this case we usenextcloud-desktop
as an example):mk-build-deps nextcloud-desktop
- Install it:
sudo apt install ./nextcloud-desktop-build-deps_x.y.z_amd64.deb