Genome::Sys(3pm)
π Genome::Sys β the system layer, but make it make sense π
okay bestie, so this one is Genome::Sys from the User Contributed Perl Documentation crew, and no cap, it's lowkey the plumbing that keeps everything cute and working. it's the system layer. that's the whole vibe. π«Ά
β¨ VERSION β¨
this doc is describing Genome::Sys version 0.05. periodt. π
πΈ SYNOPSIS πΈ
like, here's the whole thing in action, it's giving minimal and iconic:
use Genome;
my $dir = Genome::Sys->dbpath('cosmic', 'latest');
that's it. that's the appetizer. π
π¦ DESCRIPTION π¦
so Genome::Sys is a simple layer stacked right on top of all your OS-level concerns β and not just the obvious ones, but also the stuff that the analysis system handles automatically for you. think database cache locations. the boring-but-load-bearing kind of thing. it's the main character of "where does this file actually live" energy. π
π METHODS π
π swpath($name,$version)
returns the path to a given executable, library, or package. yes, all three. she contains multitudes. β¨
this is a wrapper for the OS-specific strategy for managing multiple versions of software packages β like, for example, /etc/alternatives on Debian/Ubuntu. so if your OS has Opinions about which version of a thing you get, this is the girl who knows them.
the GENOME_SW environment variable holds a colon-separated list of paths, and this method falls back to those when it needs to. the default value is /var/lib/genome/sw/. πΎ
π§ dbpath($name,$version)
returns the path to the preprocessed copy of the database you asked for. (this exists in lieu of a consistent API for the database in question β so yeah, it's the workaround, and honestly? she's serving.) π
the GENOME_DB environment variable holds a colon-separated list of paths, and this one falls back to those too. the default value is /var/lib/genome/db/. π
ngl, those fallback lists are colon-separated, so don't go putting commas in there like some kind of chaos agent. π
aaand that's the whole read, bestie β go forth and path responsibly. π
this page ships with perl v5.36.0, dated 2022-10-14, and it's the Genome::Sys(3pm) page itself. mwah, bye. πππ¦
π¦ where this page comes from
- ubuntu noble: libgenome-perl 0.06-7 Β· LGPL-3.0-only
- ubuntu resolute: libgenome-perl 0.06-7 Β· LGPL-3.0-only
- ubuntu stonking: libgenome-perl 0.06-7 Β· LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms