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 Sat 26 Jul 2014, 03:14
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Save packages downloaded in Puppy Package Manager (PPM)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
jrb


Joined: 11 Dec 2007
Posts: 1029
Location: Smithers, BC, Canada

PostPosted: Mon 18 Jul 2011, 23:45    Post subject:  Save packages downloaded in Puppy Package Manager (PPM)
Subject description: Only have to download once.
 

My only objection to PPM has been that once I download and install a package it disappears! If I have to create a new save file I have to download again which on my limited bandwidth and download limit (3Gb/month) is a pain.

Recently I took a look at /usr/local/petget/downloadpkgs.sh in Drakepup to see what I could do and here it is:
Code:
   #rxvt -title "Puppy Package Manager: download" -bg orange -fg black -geometry 80x10 -e wget ${DOWNLOADFROM}/${ONEFILE}
   download_file ${DOWNLOADFROM}/${ONEFILE}
   DLPKG="`basename $ONEFILE`"                  #jrb 13jul11
   PUPVER=`grep DISTRO_FILE_PREFIX /etc/DISTRO_SPECS | cut -d "'" -f 2`  #jrb 17jul11
   mkdir /mnt/home/${PUPVER}_download               #jrb 13jul11
   cp /root/$DLPKG /mnt/home/${PUPVER}_download      #jrb 13jul11

Add the lines of code with #jrb on the end starting at line 170.

This will create a folder in /mnt/home with the name of the puppy you are using followed by "_download" and will copy the package you are installing into that folder.

It wouldn't surprise me if there wasn't an easier way that I am overlooking, so if you know one please let me know, but this is working well so far.

I am attaching a .pet of my modified file if you wish to try it. The usual denial of reponsibility applies. Laughing
downloadpkgs.pet
Description  saves packages downloaded in PPM
pet

 Download 
Filename  downloadpkgs.pet 
Filesize  5.34 KB 
Downloaded  312 Time(s) 
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 915

PostPosted: Tue 19 Jul 2011, 06:09    Post subject:  

It works Smile
Very nice, thanks jrb!

_________________


Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10931
Location: Arizona USA

PostPosted: Tue 19 Jul 2011, 08:02    Post subject:  

I don't see why you had to go to all this trouble. The package manager in every Puppy I've tried always asks me before I download a .pet whether I want to open it (and install it right then) or save it as a file. If I choose to save it, I have it to install as many times as I want just by clicking on it.

Even if I choose to open and install the .pet when I download it, it is usually still to be found in my /tmp directory later on, if I want to save it.

_________________
Puppy Help 101 - an interactive tutorial for Lupu 5.25
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1029
Location: Smithers, BC, Canada

PostPosted: Tue 19 Jul 2011, 09:36    Post subject:  

Flash wrote:
The package manager in every Puppy I've tried always asks me before I download a .pet whether I want to open it (and install it right then) or save it as a file.
Even if I choose to open and install the .pet when I download it, it is usually still to be found in my /tmp directory later on, if I want to save it.

I thought I remembered that from older Puppies but I just tried installing in Drake, Lucid and Wary and the question was never asked. Also the file is downloaded to /root and fails to appear in /tmp. It is deleted immediately after install.

Perhaps someone will have to draw (or post) a picture for me if I am just missing something. Wink

Cheers, J
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10931
Location: Arizona USA

PostPosted: Tue 19 Jul 2011, 10:00    Post subject:  

Maybe it's your browser's download manager. Are you using a different browser from SeaMonkey?
_________________
Puppy Help 101 - an interactive tutorial for Lupu 5.25
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1029
Location: Smithers, BC, Canada

PostPosted: Tue 19 Jul 2011, 10:18    Post subject:  

Flash wrote:
Maybe it's your browser's download manager. Are you using a different browser from SeaMonkey?
I think we're talking about two different things. Correct me if I am wrong but it sounds to me that you are downloading the .pets in your browser and then installing them. This is what I have been doing up until now because the Puppy Package Manager (Install button on the desktop) kept deleting downloads.

I find it too time consuming Mad to track down .debs or .rpms and their dependencies that way. Especially when PPM will download and install all (?) the dependencies for me. Smile
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11080
Location: The Peoples Republic of California

PostPosted: Tue 19 Jul 2011, 11:40    Post subject:  

Looks like a good idea to me jrb.

Of course you can't post a HowTo without critics and people who have a better way. Guess what? I have a better way.

Seriously, my only critique is that we don't know Barry will do next. The .pet package you attached might work today and mess things up on a future release.

The most important part of the HowTo was your explaining what you did and to what file.

Don't worry, after about a dozen posts the critics will find another HowTo to pick on. Anyone want to know why I don't post HowTos?

~

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1029
Location: Smithers, BC, Canada

PostPosted: Tue 19 Jul 2011, 11:58    Post subject:  

Bruce B wrote:
we don't know Barry will do next. The .pet package you attached might work today and mess things up on a future release.
Right you are Bruce. I attached the .pet for people who aren't comfortable editing files. If it quits working in a future release, or worse, I trust someone will let me know and I will withdraw the .pet.

As for people having a better way - I'm always happy to learn. Very Happy
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Tue 19 Jul 2011, 16:47    Post subject:  

@Flash,
When selecting a package from PPM, I never got the question if I would install or download that selected package.
This is one of the reasons I don't use PPM often.

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11080
Location: The Peoples Republic of California

PostPosted: Tue 19 Jul 2011, 17:12    Post subject:  

jrb wrote:
As for people having a better way - I'm always happy to learn. :D


A better way?

The better way I was thinking of would be a distraction from the intent of your howto. It would demand its own HowTo and a very courageous OP.

I hope you understand by now, if you didn't earlier, that HowTos are subject to the most rigorous peer review. If there is an error, we will find it, argue over it and fix the HowTo.

Such is life I guess.

~

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
xmf-149

Joined: 02 Aug 2013
Posts: 17

PostPosted: Mon 14 Apr 2014, 20:30    Post subject:
Subject description: i know this is an old post, but i thought it would be funny to bump it
 

no actually i was just looking this up but i found this and you pointed me to the correct file but...
it is simpler to go down farther to before verify/installpkg.sh is called and add
Code:
mkdir -p /tmp/packs;cp -f /root/$DLPKG /tmp/packs

also it really would be nice to have a button (again?) to do this

speaking of the interface to Puppy Package Manager i will just mention here that i was using the classic ui and changed the first nested vbox to
Code:
<vbox space-expand=\"0\" space-fill=\"0\">
because the resize was bugging me and then i also had to edit the following vbox to
Code:
<vbox space-expand=\"1\" space-fill=\"1\">

also i added ' &' after 'installpreview.sh' to allow the main interface to update while that dialog is displayed
just before posting this i found a new thread about this so ill just link it here, for the search engines. i am using the same pup as the original poster, and the more info button is indeed an option but it is slower, then i read farther and they seem to have updated woof with a button but since i wrote all this im posting it anyway and using it for now

_________________
Exclamation Exclamation Exclamation

Last edited by xmf-149 on Wed 11 Jun 2014, 22:09; edited 1 time in total
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 525
Location: nyc

PostPosted: Mon 21 Apr 2014, 04:22    Post subject:  

you can also get the pet post-install with gnewpet.
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10931
Location: Arizona USA

PostPosted: Mon 21 Apr 2014, 10:51    Post subject:  

I owe everyone an apology,
I just realized that I've been talking about the .pets that I downloaded from attachments to the forum, not the ones in PPM. Embarassed
Back to top
View user's profile Send private message 
Moat

Joined: 16 Jul 2013
Posts: 156

PostPosted: Mon 21 Apr 2014, 19:10    Post subject:
Subject description: i know this is an old post, but i thought it would be funny to bump it
 

xmf-149 wrote:

also it really would be nice to have a button (again?) to do this...

...and they seem to have updated woof with a button


Yes - for those that may have missed MochiMoppel's great little script tweak that adds a download button to the PPM - http://www.murga-linux.com/puppy/viewtopic.php?p=763951

Bob
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3400
Location: West Lothian, Scotland, UK

PostPosted: Mon 21 Apr 2014, 20:26    Post subject:
Subject description: i know this is an old post, but i thought it would be funny to bump it
 

Moat wrote:
MochiMoppel's great little script tweak that adds a download button to the PPM - http://www.murga-linux.com/puppy/viewtopic.php?p=763951

Made those changes [in Slacko-5.5.91] and it appears to be ready to work [the "download only" button is there, but I have no need to use it yet].
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0883s ][ Queries: 13 (0.0046s) ][ GZIP on ]