Author |
Message |
mistfire
Joined: 04 Nov 2008 Posts: 1066 Location: PH
|
Posted: Fri 13 Oct 2017, 05:38 Post subject:
puppy-get 1.5 beta Subject description: An apt-get like utility script |
|
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
 |
Description |
beta version
|

Download |
Filename |
puppy-get-1.5.pet |
Filesize |
22.23 KB |
Downloaded |
365 Time(s) |
_________________ Simple, Magaan, at Mabilis (Simple, Light, and Fast)
Last edited by mistfire on Sat 24 Feb 2018, 04:46; edited 23 times in total
|
Back to top
|
|
 |
backi
Joined: 27 Feb 2011 Posts: 1633 Location: GERMANY
|
Posted: Fri 13 Oct 2017, 05:59 Post subject:
|
|
Sounds interesting !
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4850 Location: Blue Springs, MO
|
Posted: Fri 13 Oct 2017, 23:26 Post subject:
|
|
see http://murga-linux.com/puppy/viewtopic.php?t=111468
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
mistfire
Joined: 04 Nov 2008 Posts: 1066 Location: PH
|
Posted: Sat 14 Oct 2017, 02:55 Post subject:
|
|
Thanks @technosaurus as of now. I successfully finished the script. Theoritically it will work. I cant test this script due to very limited internet bandwidth here in my place
Here is the finished script that I made
Description |
finished. fake gz. remove .gz extension
|

Download |
Filename |
puppy-get.gz |
Filesize |
46.84 KB |
Downloaded |
222 Time(s) |
Last edited by mistfire on Sat 14 Oct 2017, 04:53; edited 1 time in total
|
Back to top
|
|
 |
mistfire
Joined: 04 Nov 2008 Posts: 1066 Location: PH
|
Posted: Sat 14 Oct 2017, 03:16 Post subject:
|
|
Hello puppy-get has reached alpha stage. It is only a single script. you can improve that script if you want.
|
Back to top
|
|
 |
Keef

Joined: 20 Dec 2007 Posts: 935 Location: Staffordshire
|
Posted: Sat 14 Oct 2017, 05:49 Post subject:
|
|
Scrapped the reply I put in earlier, as I don't think it was accurate - will test it again later.
|
Back to top
|
|
 |
Keef

Joined: 20 Dec 2007 Posts: 935 Location: Staffordshire
|
Posted: Sat 14 Oct 2017, 08:12 Post subject:
|
|
I am getting this error:
Code: | # ./puppy-get update
**** Processing Packages-puppy-common-official ****
./puppy-get: line 90: /root/.packages/repo/Packages-puppy-common-official: No such file or directory
**** Processing Packages-puppy-noarch-official ****
./puppy-get: line 90: /root/.packages/repo/Packages-puppy-noarch-official: No such file or directory
**** Processing Packages-puppy-slacko14.1-official ****
./puppy-get: line 90: /root/.packages/repo/Packages-puppy-slacko14.1-official: No such file or directory
**** Processing Packages-puppy-slacko14.2-official ****
./puppy-get: line 90: /root/.packages/repo/Packages-puppy-slacko14.2-official: No such file or directory
**** Processing Packages-slackware-14.2-extra ****
./puppy-get: line 90: /root/.packages/repo/Packages-slackware-14.2-extra: No such file or directory
**** Processing Packages-slackware-14.2-official ****
./puppy-get: line 90: /root/.packages/repo/Packages-slackware-14.2-official: No such file or directory
**** Processing Packages-slackware-14.2-salix ****
./puppy-get: line 90: /root/.packages/repo/Packages-slackware-14.2-salix: No such file or directory |
Removing the /repo bit does work, but the update was taking a long time and I had to go out, so quit. Will run it again later and see if it completes.
|
Back to top
|
|
 |
mistfire
Joined: 04 Nov 2008 Posts: 1066 Location: PH
|
Posted: Sat 14 Oct 2017, 08:18 Post subject:
|
|
@Keef did you run the latest script that I uploaded today? Im already fixed that error. Making 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.
|
Back to top
|
|
 |
mistfire
Joined: 04 Nov 2008 Posts: 1066 Location: PH
|
Posted: Sun 15 Oct 2017, 01:02 Post subject:
|
|
puppy-get 1.0 alpha released
changes:
* Improved packages searching.
* Autobackup master database when updating.
* Faster download link roaming.
* New parameters added
+ stat - shows number of packages in the master database
+ rollback - restore last updated master database.
NOTE: The master database for this script is different from previous. run "puppy-get update" first before using.
Description |
more improvements. fake gz. remove .gz extension. rename as puppy-get
|

Download |
Filename |
puppy-get-1.0_alpha.gz |
Filesize |
49.36 KB |
Downloaded |
211 Time(s) |
|
Back to top
|
|
 |
mistfire
Joined: 04 Nov 2008 Posts: 1066 Location: PH
|
Posted: Tue 17 Oct 2017, 21:40 Post subject:
|
|
puppy-get 1.0 beta released
changes:
* bugfix on installation of packages
* new commands added
+ remove - uninstall a package
+ package - install a package using package file
+ view-installed - show user installed packages
+ loaddb - load a package database file as master package database
Description |
beta version. remove .gz extension. set permission to 777 or +x
|

Download |
Filename |
puppy-get_beta.gz |
Filesize |
72.28 KB |
Downloaded |
189 Time(s) |
|
Back to top
|
|
 |
ally

Joined: 19 May 2012 Posts: 1873 Location: lincoln, uk
|
Posted: Tue 17 Oct 2017, 23:52 Post subject:
|
|
hey mist
just tried your script in xenialpup64 7.0.2.5
tried a couple of small installs, dillo and gweled
sadly both failed to run with missing dependencies
dillo is missing libfltk.so.1.3
gweled is missing libmikmod.so.3
unable to install the above manually (ie puppy get install ...)
running remove on both installs returns package not installed
running view-installed returns Fun and Internet where the packages were installed to (there are menu entries for both packages)
hope this makes sense...
|
Back to top
|
|
 |
ally

Joined: 19 May 2012 Posts: 1873 Location: lincoln, uk
|
Posted: Wed 18 Oct 2017, 00:23 Post subject:
|
|
I have also tried editing user installed packages by adding dillo to the internet field but no joy
I have tried remove with full package name (ie dillo_3.0.5-2_amd64) but no joy also
copies of user installed packages, dillo files and gweled files included (fake .gz)
Description |
|

Download |
Filename |
gweled_0.9.1-3ubuntu1_amd64.files.gz |
Filesize |
3.69 KB |
Downloaded |
189 Time(s) |
Description |
|

Download |
Filename |
dillo_3.0.5-2_amd64.files.gz |
Filesize |
3.34 KB |
Downloaded |
182 Time(s) |
Description |
|

Download |
Filename |
user-installed-packages.gz |
Filesize |
920 Bytes |
Downloaded |
191 Time(s) |
|
Back to top
|
|
 |
mistfire
Joined: 04 Nov 2008 Posts: 1066 Location: PH
|
Posted: Wed 18 Oct 2017, 00:50 Post subject:
|
|
Hi @ally can you gave me the download link of your packages that installed?
|
Back to top
|
|
 |
ally

Joined: 19 May 2012 Posts: 1873 Location: lincoln, uk
|
Posted: Wed 18 Oct 2017, 00:57 Post subject:
|
|
how do I find that? I used puppy-get install
|
Back to top
|
|
 |
mistfire
Joined: 04 Nov 2008 Posts: 1066 Location: PH
|
Posted: Wed 18 Oct 2017, 01:51 Post subject:
|
|
@ally
ah ok, I thought that you are using the "puppy-get package" command. By the way can you send me your master package database file that you generated? that file was /root/.packages/pkg-master-db
|
Back to top
|
|
 |
|