Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/pexPublic

light-weight package manager for PostgreSQL

License

NotificationsYou must be signed in to change notification settings

petere/pex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pex is a light-weight package manager for PostgreSQL.

Install a package:

pex install plproxy

See available packages:

pex search

It's based on Git and standard Unix tools underneath.

See the man page for the complete usage instructions.

Pex is intended for developers and has support for managing multiple PostgreSQL installations.

Pex has been influenced byHomebrew but is otherwise unrelated.

Build Status

Why Pex

There are many things to like:

  • Light-weight: only trivial run-time dependencies
  • Independent: doesn't matter where packages are hosted
  • Curated: no obsolete, unmaintained, immature, or broken packages
  • Trackable: control when packages change and know where they came from
  • Tested: all package downloads are automatically tested
  • Flexible: supports many installation layouts, can build Debs and RPMs
  • Extensible: fork and add your own in-house packages, no infrastructure required
  • Secure: everything is linked together by cryptographic hashes

Installation

You can just get thepex program directly and install it wherever you want.

The standard installation procedure is:

git clone git://github.com/petere/pex.gitcd pexsudo make install

This install thepex program and the man page under/usr/local. See theMakefile for more options.

To make a Debian package, runmake deb.

After installation, you must run

pex init

just once to fetch the initial package descriptions and set up some internal directories.

Pex has minimal run-time dependencies. You just need a POSIX shell, curl, and git, as well as PostgreSQL, including development headers, and any build dependencies of the packages you want to install.

How it works

Pex uses a repository of package description files (see below) to know where to download a specific package. The package description files are (normally) in a Git repository, by default cloned fromhttps://github.com/petere/pex-packages. So to make changes, use Git tools to make a branch, revert changes, etc. When asked to install a package, Pex downloads, unpacks, builds, and installs the package into the PostgreSQL installation. There are command-line options to choose among multiple PostgreSQL installations.

Pex maintains a small amount of state to keep track of what it has already downloaded or installed. See the man page for the file locations.

If you maintain custom versions of packages or have in-house packages, Pex can support that. Just edit the repository and change the download URLs or add your own packages.

Package description file format

Usepex --repo to see where the package description files are stored. See the man page for details.

The package files are in YAML format. But note that the files are parsed by a shell script, not by a real YAML library, so be gentle. The files must be namedpackagename.yaml. Here is an example ofplsh.yaml:

homepage: https://github.com/petere/plshurl: https://github.com/petere/plsh/archive/1.20121226.zipsha1: c85166bc04a3a3731c4acc3f144a0d4779f20010

There are three required fields:

  • homepage: A location that can be opened in a web browser to learn about the package.
  • url: A location that curl can download and either tar or zip can unpack to get the package source.
  • sha1: The SHA1 hash of the downloaded archive.

There is one optional field:

  • aliases: Lists alternative package names. These can be used in commands such asinstall instead of the canonical package name. If the package provides extensions that differ from the package name, it is recommended that the extension names be listed as aliases. For example, the packageplv8 might list

    aliases: plcoffee plls

Usepex audit to check the package file for syntax and other errors. Note that this requires Perl and the YAML module.

About

light-weight package manager for PostgreSQL

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp