Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

hashget admin

Yaroslav Polyakov edited this page Mar 21, 2021 · 3 revisions

In examples, we will use project 'wp' and hashpackage for WordPress 5.1.1.

To reproduce same testing configuration:

$ hashget --submit https://wordpress.org/wordpress-5.1.1.zip -p wp

To see --hp option format check HPSpec format.

Getting information

# Show status for local project(s)
$ hashget-admin --status 
$ hashget-admin --status -p wp

# List packages in project(s)
$ hashget-admin --list 
$ hashget-admin --list -p wp

# Dump HashPackages
$ hashget-admin --dump --hp wordpress-5.1.1.zip

Verify

# verify all packages (not recommended)
$ hashget-admin --verify

# verify all packages in project wp 
$ hashget-admin --verify -p wp

# verify matching package(s). all commands below will verify same package: 
$ hashget-admin --verify --hp url:https://wordpress.org/wordpress-5.1.1.zip
$ hashget-admin --verify --hp https://wordpress.org/wordpress-5.1.1.zip
$ hashget-admin --verify --hp name:wordpress-5.1.1.zip
$ hashget-admin --verify --hp wordpress-5.1.1.zip

Delete HashPackages

Commands to delete HashPackages
# Purge one HashPackage
$ hashget-admin --purge --hp wordpress-5.1.1.zip
# Purge HashPackage and web symlinks (if maintaining web db)
$ hashget-admin --purge --hp wordpress-5.1.1.zip --webroot /var/www/hashdb/

# Purge all expired HashPackages
$ hashget-admin --purge --hp expired


#
# VERY CAREFUL for commands below
#

# Purge ALL packages in project wp
$ hashget-admin --purge -p wp --hp all

# Purge ALL packages in ALL projects
$ hashget-admin --purge --hp all

Update HashDB with locally installed packages

xenon@braconnier:~/repo/hashget$ sudo bin/hashget --index /var/lib/dpkg/
Development hashget hashdb repository
https://github.com/yaroslaff/hashget
submitting http://snapshot.debian.org/archive/debian/20190305T161947Z/pool/main/a/accountsservice/accountsservice_0.6.45-2_amd64.deb
uploading accountsservice_0.6.45-2_amd64.deb (75.3K) to https://hashdb.okerr.com/submit
Submit 200 OK
submitting http://snapshot.debian.org/archive/debian/20190302T032754Z/pool/main/a/acl/acl_2.2.53-4_amd64.deb
uploading acl_2.2.53-4_amd64.deb (58.9K) to https://hashdb.okerr.com/submit
Submit 200 OK

Clone this wiki locally