How to create a meta-package for Debian Astro (the Pure Blend) that bundles a selection of astronomy-related packages.
You’re looking to create a meta-package for Debian Astro (the Pure Blend) that bundles a selection of astronomy-related packages without causing the installation to fail if some of them don’t install correctly. That’s absolutely doable using Debian tools—let me walk you through it.
Step 1: Identify Available Astro Metapackages
Debian Astro organizes its astronomy software into thematic meta-packages such as:
astro-catalogsastro-datareductionastro-developmentastro-educationastro-frameworksastro-gdlastro-javaastro-publicationastro-python3astro-radioastronomyastro-simulationastro-telescopecontrolastro-toolsastro-viewersastro-virtual-observatory
…and more (Debian Blends, Debian Packages).
You can install all at once using astro-all if you wish, but you want a custom, robust setup that tolerates failures.
Step 2: Use equivs to Build Your Custom Meta-Package
The equivs package lets you create a Debian package that essentially lists other packages as dependencies, without containing any actual software. It’s perfect for building resilient meta-packages (Fekir’s Blog, Ask Ubuntu, The Debian Administrator’s Handbook).
Here’s how to do it:
- Install
equivs:
2.sudo apt-get install equivs
- Generate a control template:
4.equivs-control my-astro-meta
- Edit the
my-astro-metafile:- Set meaningful fields like
Package: astro-custom-meta,Version: 1.0,Maintainer, etc. - Use either
Depends:orRecommends:to list the Astro meta-packages you want.
Example:
- Set meaningful fields like
oDepends: astro-python3, astro-datareduction, astro-radioastronomy, astro-telescopecontrol
Using Recommends: makes installation more flexible: if something fails, apt still proceeds.
- Build the package:
7.equivs-build my-astro-meta
- Install your new meta-package:
9.sudo dpkg -i astro-custom-meta_1.0_all.deb
This creates a tidy way to install astronomy-related packages in one go, while keeping errors from stopping the whole process (Ask Ubuntu, The Debian Administrator’s Handbook).
Optional: Handling Unavailable or Problematic Packages
If some of your selected packages are problematic or unavailable, and you still want the meta-package to allow installation to succeed, consider creating dummy packages to satisfy dependencies:
- Use
equivsagain to generate empty placeholder packages for the problematic or missing ones. - Give them the same package names or
Provides:lines accordingly, sodpkgbelieves they exist and moves on (Fekir’s Blog, Debian Wiki, The Debian Administrator’s Handbook).
Summary
| Task | Recommendation |
| Collect and group Astro packages | Use lists from Debian Astro (astro-... meta-packages) (Debian Blends, Debian Packages) |
| Build your meta-package | Use equivs to specify Depends: or Recommends: |
| Make it robust | Use Recommends: or dummy packages with equivs to prevent failure |