puppy-get 2.0 beta
Posted: Fri 13 Oct 2017, 09:38
This is a script that behaves like apt-get for installing packages.
Usage: puppy-get [options] [package name]
Parameters:
update - refresh/create master package database
install - install a package together with its dependencies
download - download only a package together with its dependencies
list - show the list of all packages in the master package database
info - show package information
stat - show number of packages in the database
rollback - restore last updated database
remove - uninstall a package
package <package filename> - install a package using package file
view-installed - show user installed packages
loaddb <filename> - load a package database file as master package database
search - search a package name in the master database
how it works:
this is script creates master package database file where all the contents of package database files inside the /root/.package will merge one as file. An existing entry in the master database will be overwritten by an entry with later versions. (It works best on this x.x.x.x version number scheme.) It means the master database contains latest version of the packages. Otherwise you load a package database file from PPM
When installing a package it searches the all dependencies needed to be installed (same as apt-get), download all packages, and install it.
Upon downloading, the script roams around the repo list until the valid download package link is found.
NOTE:
1. This script need more tests
2. Creating/updating master database really tooks a long time to complete depending on how many packages per database file. If you terminate the process, you will have truncated/incomplete master package database. the package searching and dependency checking in the script might not work accurately if you have an incomplete database. Or else you load a package database file from PPM.
You can contribute to this project by uploading the modified script on this thread.
Need more work:
* Handling unconventional version schemes
* Updating/upgrading pre-installed packages
Usage: puppy-get [options] [package name]
Parameters:
update - refresh/create master package database
install - install a package together with its dependencies
download - download only a package together with its dependencies
list - show the list of all packages in the master package database
info - show package information
stat - show number of packages in the database
rollback - restore last updated database
remove - uninstall a package
package <package filename> - install a package using package file
view-installed - show user installed packages
loaddb <filename> - load a package database file as master package database
search - search a package name in the master database
how it works:
this is script creates master package database file where all the contents of package database files inside the /root/.package will merge one as file. An existing entry in the master database will be overwritten by an entry with later versions. (It works best on this x.x.x.x version number scheme.) It means the master database contains latest version of the packages. Otherwise you load a package database file from PPM
When installing a package it searches the all dependencies needed to be installed (same as apt-get), download all packages, and install it.
Upon downloading, the script roams around the repo list until the valid download package link is found.
NOTE:
1. This script need more tests
2. Creating/updating master database really tooks a long time to complete depending on how many packages per database file. If you terminate the process, you will have truncated/incomplete master package database. the package searching and dependency checking in the script might not work accurately if you have an incomplete database. Or else you load a package database file from PPM.
You can contribute to this project by uploading the modified script on this thread.
Need more work:
* Handling unconventional version schemes
* Updating/upgrading pre-installed packages