How can I generate a list of package dependencies and dump them into a readable CSV format? Let’s say I need to create a dependency check for a list of packages installed on a system, but I don’t want to have to search for every package dependency manually, but to create a checklist for specific packages that are required for something you want to install that will check if you have that package installed, if not it will run it through a package manager and install those packages through whatever package manager the user might have.
If you’ve got a bunch of packages for a different Linux distribution and you want to install an application, but that other linux distribution packages are named differently say Debian Apt for example, how can you check against that if you’re using AUR package manager like Pamac or Pacman? It’s not like you can just run from the CSV checklist and expect the package manager to find them for you, the names have to be exact. I know Pamac can be bit lenient and list packages based on the names you’ve given it, but for Pacman package names have to be exact or it doesn’t know what you’re looking for.
Example;
You can look up
libstdc++
in Pamac and it’ll list you a bunch of packages by that name like so:libstdc++296 Standard C++ libraries for Red Hat 7.3 backwards compatibility compiler. With additions from OpenSUSE 13.1. Provides libstdc++-libc6.2-2.so.3 libstdc++5 GNU Standard C++ library version 3
Looking up
libstdc++
in Pacman however doesn’t list anything, and will tell you it can’t find it.
But let’s also say you got a dependency list from a Debian package, and it wants lib32-libstdc++6
then the package manager for AUR isn’t going to find it, because there is no package by that name specifically. or how about those other i386
labelled packages like libc6:i386
?