Ideas about an optional package manager
Published (last updated )
Some ideas about an optional package manager.
example commands:
opt list package-name (lists available packages and their state)
opt update (fetches package descriptors)
opt upgrade package-name (execute an upgrade for a package)
opt uninstall/fetch/prepare/build/configure/install package-name (do these things)
opt info package-name (show detailed information about a package)
opt help (show help)
opt version (show version)
package phases:
- uninstalled
- fetched
- prepared
- built
- configured
- installed
various ideas:
- direct from upstream
- os for low-level runtime and build dependencies
- no interpackage dependencies
- atomic, maybe snapshotting support
- repository of package descriptor files
- fetch file, execute phases -> installed
- should be location-independent
- PATH and MANPATH extension through /etc/profile.d
- PKG_CONFIG_PATH extension through /etc/profile.d
- other environment variable extension through /etc/profile.d
- desktop environment extension through /usr/share/applications
- can be for all kinds of software (servers, text, gui, whatever)
questions:
- how to handle arbitrary releases/versions upstream?
- should we handle multiple versions? what about concurrent installations? what about defaults?
- should have some way to indicate tested/known working versions?
- what about hashes? should we verify a known working version?
- how to handle different distros/versions/architectures/osses?
dimensions:
- package name
- package major, minor, patch version