Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 Nov 2017, 09:26
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
puppy-get 1.5 beta
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 4 [49 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
mistfire

Joined: 04 Nov 2008
Posts: 645
Location: PH

PostPosted: 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
puppy-get_1.5-beta.gz
Description  beta version
fake gz. remove .gz extension.
rename as puppy-get
set permission to 777 or +x
gz

 Download 
Filename  puppy-get_1.5-beta.gz 
Filesize  82.21 KB 
Downloaded  69 Time(s) 

_________________
Simple, Magaan, at Mabilis (Simple, Light, and Fast)

Last edited by mistfire on Mon 13 Nov 2017, 03:02; edited 22 times in total
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 1347
Location: GERMANY

PostPosted: Fri 13 Oct 2017, 05:59    Post subject:  

Sounds interesting !
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4756
Location: Kingwood, TX

PostPosted: 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
View user's profile Send private message Visit poster's website 
mistfire

Joined: 04 Nov 2008
Posts: 645
Location: PH

PostPosted: 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
puppy-get.gz
Description  finished. fake gz. remove .gz extension
gz

 Download 
Filename  puppy-get.gz 
Filesize  46.84 KB 
Downloaded  37 Time(s) 

Last edited by mistfire on Sat 14 Oct 2017, 04:53; edited 1 time in total
Back to top
View user's profile Send private message 
mistfire

Joined: 04 Nov 2008
Posts: 645
Location: PH

PostPosted: 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
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 869
Location: Staffordshire

PostPosted: 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
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 869
Location: Staffordshire

PostPosted: 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
View user's profile Send private message 
mistfire

Joined: 04 Nov 2008
Posts: 645
Location: PH

PostPosted: 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
View user's profile Send private message 
mistfire

Joined: 04 Nov 2008
Posts: 645
Location: PH

PostPosted: 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.
puppy-get-1.0_alpha.gz
Description  more improvements. fake gz. remove .gz extension. rename as puppy-get
gz

 Download 
Filename  puppy-get-1.0_alpha.gz 
Filesize  49.36 KB 
Downloaded  38 Time(s) 
Back to top
View user's profile Send private message 
mistfire

Joined: 04 Nov 2008
Posts: 645
Location: PH

PostPosted: 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
puppy-get_beta.gz
Description  beta version. remove .gz extension. set permission to 777 or +x
gz

 Download 
Filename  puppy-get_beta.gz 
Filesize  72.28 KB 
Downloaded  21 Time(s) 
Back to top
View user's profile Send private message 
ally


Joined: 19 May 2012
Posts: 1588
Location: lincoln, uk

PostPosted: 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...

Smile
Back to top
View user's profile Send private message Visit poster's website 
ally


Joined: 19 May 2012
Posts: 1588
Location: lincoln, uk

PostPosted: 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)

Smile
gweled_0.9.1-3ubuntu1_amd64.files.gz
Description 
gz

 Download 
Filename  gweled_0.9.1-3ubuntu1_amd64.files.gz 
Filesize  3.69 KB 
Downloaded  16 Time(s) 
dillo_3.0.5-2_amd64.files.gz
Description 
gz

 Download 
Filename  dillo_3.0.5-2_amd64.files.gz 
Filesize  3.34 KB 
Downloaded  25 Time(s) 
user-installed-packages.gz
Description 
gz

 Download 
Filename  user-installed-packages.gz 
Filesize  920 Bytes 
Downloaded  17 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
mistfire

Joined: 04 Nov 2008
Posts: 645
Location: PH

PostPosted: 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
View user's profile Send private message 
ally


Joined: 19 May 2012
Posts: 1588
Location: lincoln, uk

PostPosted: Wed 18 Oct 2017, 00:57    Post subject:  

how do I find that? I used puppy-get install

Smile
Back to top
View user's profile Send private message Visit poster's website 
mistfire

Joined: 04 Nov 2008
Posts: 645
Location: PH

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 4 [49 Posts]   Goto page: 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0563s ][ Queries: 12 (0.0050s) ][ GZIP on ]