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 20 Dec 2014, 13:31
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
PET-Be-Gone v0.4
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 6 [78 Posts]   Goto page: 1, 2, 3, 4, 5, 6 Next
Author Message
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Fri 06 Apr 2007, 00:44    Post subject:  PET-Be-Gone v0.4
Subject description: Remove those stubborn built-in programs!
 

Only compatible with Puppy versions less than 4.3. (More specifically, it only works on Puppies that were built with Unleashed. Woof-built Puppies are not compatible with this package.)

PET-Be-Gone is an application to help you remove the programs that Puppy comes with. As of Puppy 2.14, examples are Abiword, Gnumeric, Seamonkey, Gxine, and Geany. There are literally hundreds more, though most are very small libraries for stuff like ogg support or jpg images. For the curious, unlike the old PupBeGone, this app was written from the ground up. It's orders of magnitude faster, much better looking, and far simpler to work with. I'm not afraid to look at this one's guts (I still avoid the old PupBeGone like a non-creative writing assignment at two in the morning)

How it works is pretty simple. First, you must install the 0pkgs_db-x.x.x.pet file! It is available through the PETget install that comes with Puppy. That file contains lists of what each package contains and where they are located. Without it, nothing can be uninstalled.

When that's set up, you can install and use PET-Be-Gone (links provided below). It is a ROX-App that installs to /root/my-roxapps/. It will also add an entry to the menus (restart the windowmanager first). It will pop up the familiar interface used by PETget, except the contents will be different. Listed on the right are all the packages built into Puppy. Select and remove the ones you wish to eradicate, and press continue. It will then cycle through and uninstall them. It will also edit livepackages.txt, which means you can re-install those apps later with PETget if you miss them. Additionally, it creates a deadpackages.txt file so it can keep track of what it has and has not removed.

When it's finished, the packages will be deleted. If you restart your windowmanager, the menus should update to reflect that.

HOWEVER, unless you are running a Full-HD install, they won't truly be deleted. This is no fault of yours, mine, nor PET-Be-Gone's. It's a result of the very nature of Puppy. Those apps were contained in a read-only compressed file. When you modify or "delete" them, Puppy merely turns a blind eye to the original. So Puppy will think you've deleted them and you won't be able to use them anymore, but no space will be freed. Actually, a slight amount of space will be used for the "whiteout" files that Puppy uses to hide them.

So, what's the solution? Remaster. Although they apps still exist within the pup_xxx.sfs file, Puppy cannot see them. Neither can the remaster script. So if you use it to remaster Puppy, those apps will not be included, and the resulting Puppy will be smaller. Replace your old Puppy with this new, lighter one, and presto! Apps are gone for good.

Okay, now that I've gotten all that out of the way, here is the download link:
petbegone-0.4.pet
DEPENDENCY: 0pkgs_db-x.x.x.pet, available through the PETget installer. If it doesn't show, then it is generally availible from the ibiblio server, in the directory corresponding to the version of Puppy you use. Be sure to get the one for the Puppy you use, or it will not remove packages correctly!

Warning: Sometimes PET-Be-Gone can corrupt your /root/.packages/livepackages.txt and /root/.packages/deadpackages.txt files. It will make a backup before every edit, but it only maintains the most recent backup, so you may wish to make your own backups also. If you get the "Xdialog error", try restoring this file, and possibly deleting the /root/.packages/deadpackages.txt file. Doing the latter will make PET-Be-Gone forget that it has already removed all the packages you've removed. Otherwise it should have no ill effects.


updated May 5, 2008: corrected sed error that would change the 'on' in package descriptions
updated Oct 18, 2008: corrected grep errors that mishandled quotations
updated Oct 19, 2008: corrected more grep and sed errors, and made more robust to hopefully avoid disabling PET-Be-Gone if there are remaining errors

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib


Last edited by Pizzasgood on Sun 10 Jan 2010, 14:05; edited 7 times in total
Back to top
View user's profile Send private message Visit poster's website 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Sun 08 Apr 2007, 11:00    Post subject: Re: PET-Be-Gone v0.1
Subject description: Remove those stubborn built-in programs!
 

Pizzasgood wrote:
DEPENDENCY: 0pkgs_db-x.x.x.pet, available through the PETget installer.

Warning: This version has not yet been heavily tested! It seems to work so far, but back up first anyway!

I have downloaded and installed the package, but although 0pkgs_db-2.1.5 is installed in the base package, and so not accessible through PETget, it still fails to run with the following error:
Code:
ERROR:  /root/.packages/unleashed does not exist.  Maybe
0pkgs_db-2.1.5.pet isn't installed?


Version: Puppy 2.15CE Final - Full (Normal) hard drive install

Note: /root/.packages/packages.txt exists, as do livepackages.txt and alienpackages.txt, but /root/.packages/unleashed does not. Could that be the problem?

Hope that helps.

_________________
Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Sun 08 Apr 2007, 23:27    Post subject:  

Quote:
ERROR: /root/.packages/unleashed does not exist


Quote:
Note: /root/.packages/packages.txt exists, as do livepackages.txt and alienpackages.txt, but /root/.packages/unleashed does not. Could that be the problem?


Is this a trick question? Confused

Okay, I'll be serious now. 0pkgs_db should have a /root/.packages/unleashed directory, which contains hundreds of *.files files. So either it isn't installed properly, or it wasn't created properly (don't forget you must run createpets script that comes with unleashed).


Someone else told me that it wasn't uninstalling all the files of some package, but that's a different error. Just thought I'd warn anyone who's testing this so they stay on the lookout. I'm going to do some more testing tonight.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

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


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Mon 09 Apr 2007, 00:56    Post subject:  

Pizzasgood wrote:
Is this a trick question? Confused

Okay, I'll be serious now. 0pkgs_db should have a /root/.packages/unleashed directory, which contains hundreds of *.files files. So either it isn't installed properly, or it wasn't created properly (don't forget you must run createpets script that comes with unleashed).

0pkgs_db was definitely included in the build. Here is the relevant section of my packages.txt file:
Code:
"0pkgs_db-2.1.4" "0pkgs_db-2.1.4: " unavailable " " \
"0pkgs_db-2.1.5" "0pkgs_db-2.1.5: " on " " \
"0rootfs_skeleton-2.1.4" "0rootfs_skeleton-2.1.4: " unavailable "CONSCORE 13940K" \
"0rootfs_skeleton-2.1.5" "0rootfs_skeleton-2.1.5: " on " " \

I have 3 installations - 1 x Full (Normal), 1 x Frugal (save to partition) and 1 x Frugal (save to file). None of them show the unleashed directory under /root/.packages, sorry.

Is there another way to test for the presence of 0pkgs_db?

BTW, if I didn't run the createpets script, how did I get a base Puppy 2.15 to start from? All of the packages that were in /root/unleashed/packages are in the build, as the packages.txt file attests. Mind you, the original build has been remastered, and it is possible that in one of the remasters the /root directory was wiped of any reference to /root/.packages/unleashed

Hope that helps you track this one down, PG.

_________________
Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Mon 09 Apr 2007, 01:21    Post subject:  

createpets is not createpuppy. createpuppy builds the iso. createpets takes all those package directories and does two things. First it makes the 0pkgs_db-x.x.x package, then it makes .pet files out of all those package directories.

As for whether you have it installed, yes, you do seem to have it. But it's not correct. Either it was built wrong, or it was stripped out by the remaster script. Because the entire package consists of those lists in /root/.packages/unleashed/. Without them, it's just an empty and useless shell. Not even good for holding soup.

You can check whether it's the package itself or the remaster script by looking at the packages/0pkgs_db-2.1.5/ directory in the Unleashed tree.

Something else to keep in mind: If you modify it and use the remaster script, any new or removed files won't be reflected by the file lists, and may cause things to be improperly removed by PET-Be-Gone, unless you manually fix the appropriate .files file.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

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


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Mon 09 Apr 2007, 01:42    Post subject:  

Pizzasgood wrote:
createpets is not createpuppy. createpuppy builds the iso. createpets takes all those package directories and does two things. First it makes the 0pkgs_db-x.x.x package, then it makes .pet files out of all those package directories.

Ok, I must be really dumb or something, because the process was the reverse for me. I downloaded a whole heap of packages from unleashed that were already in .pet format. Then I ran a set of commands to unpack them from .pets to directories under /unleashed/packages ... then I ran createpuppy. 0pkgs_db-2.1.5 (renamed by me) was one of those directories. I double-checked because you said it was necessary for Pupbegone (Petbegone didn't yet exist).

Pizzasgood wrote:
As for whether you have it installed, yes, you do seem to have it. But it's not correct. Either it was built wrong, or it was stripped out by the remaster script. Because the entire package consists of those lists in /root/.packages/unleashed/. Without them, it's just an empty and useless shell. Not even good for holding soup.

Then that's what I've got and what's more I can't recreate it. In the remaster shuffle I lost my entire unleashed directory with all my packages, etc. Crying or Very sad

Pizzasgood wrote:
You can check whether it's the package itself or the remaster script by looking at the packages/0pkgs_db-2.1.5/ directory in the Unleashed tree.

Can't do that for reasons just stated above. Sorry.

UPDATE: Ok, I picked up a copy of the unleashed directory from one of my coasters and put it under /root/.packages and Petbegone now runs. *sigh* Here comes another patch for Puppy 2.15CE ....

_________________
Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Mon 09 Apr 2007, 11:41    Post subject:  

Okay, here's the full version:

1. download lots of stuff
2. run command to extract them
3. edit them all
4. run command to make PETgets out of them and set up 0pkgs_db
5. run command to build iso

It is semi-safe to skip step 4 during testing, but needs to be done before making a final edition. It has to be re-done for the final, to update for any changes to the packages. An old one will only work if you changed the contents of files without changing which files are included or not, though that's only if 0pkgs_db is all you care about because the PETgets it makes would be outdated.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

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

Joined: 22 Aug 2007
Posts: 107

PostPosted: Wed 29 Aug 2007, 14:04    Post subject:  

I ran pet-be-gone and (misunderstood the directions) ran a pfix=clean


get

Xdialog v2.3.1 by Thierry Godefroy <xdialog@free.fr> (v1.0 was
written by Alfred at Cyberone Internet <alfred@cyberone.com.au>).
Xdialog home page available at: http://xdialog.dyns.net/

Usage: Xdialog [<common options>] [<transient options>] <box option> ...

Common options:
--wmclass <name>
--rc-file <gtkrc filename>
--backtitle <backtitle>
--title <title>
--allow-close | --no-close
--screen-center | --under-mouse | --auto-placement
--center | --right | --left | --fill
--no-wrap | --wrap
--cr-wrap | --no-cr-wrap
--stderr | --stdout
--separator <character> | --separate-output
--buttons-style default|icon|text

Transient options:
--fixed-font
--password (may be repeated 2 or 3 times before --2inputsbox or --3inputsbox)
--password=1|2 (for --2inputsbox or --3inputsbox)
--editable
--time-stamp | --date-stamp
--reverse
--keep-colors
--interval <timeout>
--timeout <timeout> (in seconds)
--no-tags
--item-help (if used, the {...} parameters are needed in menus/lists widgets)
--default-item <tag>
--icon <xpm filename>
--no-ok
--no-cancel
--no-buttons
--default-no
--wizard
--help <help>
--print <printer> (1)
--check <label> [<status>]
--ok-label <label>
--cancel-label <label>
--beep
--beep-after
--begin <Yorg> <Xorg>
--ignore-eof
--smooth

Box options:
--yesno <text> <height> <width>
--msgbox <text> <height> <width>
--infobox <text> <height> <width> [<timeout>]
--gauge <text> <height> <width> [<percent>]
--progress <text> <height> <width> [<maxdots> [[-]<msglen>]]
--inputbox <text> <height> <width> [<init>]
--2inputsbox <text> <height> <width> <label1> <init1> <label2> <init2>
--3inputsbox <text> <height> <width> <label1> <init1> <label2> <init2> <label3> <init3>
--combobox <text> <height> <width> <item1> ... <itemN>
--rangebox <text> <height> <width> <min value> <max value> [<default value>]
--2rangesbox <text> <height> <width> <label1> <min1> <max1> <def1> <label2> <min2> <max2> <def2>
--3rangesbox <text> <height> <width> <label1> <min1> <max1> <def1> ... <label3> <min3> <max3> <def3>
--spinbox <text> <height> <width> <min value> <max value> <default value> <label>
--2spinsbox <text> <height> <width> <min1> <max1> <def1> <label1> <min2> <max2> <def2> <label2>
--3spinsbox <text> <height> <width> <min1> <max1> <def1> <label1> ... <min3> <max3> <def3> <label3>
--textbox <file> <height> <width>
--editbox <file> <height> <width>
--tailbox <file> <height> <width>
--logbox <file> <height> <width>
--menubox <text> <height> <width> <menu height> <tag1> <item1> {<help1>}...
--checklist <text> <height> <width> <list height> <tag1> <item1> <status1> {<help1>}...
--radiolist <text> <height> <width> <list height> <tag1> <item1> <status1> {<help1>}...
--buildlist <text> <height> <width> <list height> <tag1> <item1> <status1> {<help1>}...
--treeview <text> <height> <width> <list height> <tag1> <item1> <status1> <item_depth1> {<help1>}...
--fselect <file> <height> <width>
--dselect <directory> <height> <width>
--colorsel <text> <height> <width> [<red> <green> <blue>]
--fontsel <font name> <height> <width>
--calendar <text> <height> <width> [<day> <month> <year>]
--timebox <text> <height> <width> [<hours> <minutes> <seconds>]

Special options:
--version (prints version number to stderr and exits).
--print-version (same as above in a cdialog-compatible way).
--print-maxsize (prints maximum menu size in characters and exits).

Note that <height> and <width> are in characters and may be replaced by a single
XSIZExYSIZE[+/-XORG+/-YORG] parameter (like the one passed in the -geometry option
of X) which will represent the size of the Xdialog window in pixels. Specifying
a size of 0 0 (or 0x0) will auto-size Xdialog, while a size of -1 -1 (or -1x-1)
will maximize it.

(1) This Xdialog binary compiled with: lprshell -P<printer>
as the print command. If <printer> is "" (an empty string), the -P
option is not used.


When trying tpo re-run pet-be-gone (tried re-installing)
Back to top
View user's profile Send private message 
xxsolusxx

Joined: 22 Aug 2007
Posts: 107

PostPosted: Wed 29 Aug 2007, 16:30    Post subject:  

*requires remaster*

So you can only remove them if (A) you install to the HD or (b) you burn a new livedisk from a .iso


running from a livedisk w/ no burner= s.o.l?
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Wed 29 Aug 2007, 20:04    Post subject:  

Pretty much. The built-in stuff is stored on the CD, so there's not much you can do to it without burning a new one. Which is great from a security standpoint, but annoying with situations like this.

As for the Xdialog error, I'll look into that. Someone else just had that same problem in the thread you were asking about 0pkgs_db. If you go back there and follow the instructions I posted, that might help me sort out this particular bug.
http://www.murga-linux.com/puppy/viewtopic.php?p=137964#137964

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

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


Joined: 27 Nov 2006
Posts: 112
Location: Brazil

PostPosted: Mon 03 Dec 2007, 17:34    Post subject:  

Are the above instructions still valid for puppy 3.01?

I couldn't find 0pkgs_db-x.x.x.pet on my PETget installer.

Thanks

kkpity

_________________
Linux user #388359 (http://counter.li.org/)
Back to top
View user's profile Send private message 
kkpity


Joined: 27 Nov 2006
Posts: 112
Location: Brazil

PostPosted: Mon 03 Dec 2007, 17:44    Post subject:  

I've found the package at:
ftp://ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-3/0pkgs_db-3.01.pet

but my question is still pending Wink

Are the above instructions still valid for puppy 3.01?

Just to make sure someone has already used them on puppy 3.01.

Thanks again

kkpity

_________________
Linux user #388359 (http://counter.li.org/)
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Wed 05 Dec 2007, 21:01    Post subject:  

I haven't tested it on 3.xx yet. It seemed like there were a lot of people with bugs from this a couple months back, so if you try it be careful. Back up your /root/packages directory, especially packages.txt and livepackages.txt. If you get the dreaded Xdialog help dialog rather than PETget or Pet-Be-Gone, replace them and it should fix that (but your PETget might wind up slightly out of sync with your system, as in, it won't realize you removed an app, so that app won't appear in the download list.

Also, I don't remember if this version offeres the option to not use the 0pkgs-db package, and to download the packages themselves to see what's inside. If it does, only use the 0pkgs-db option. Otherwise it will try to use the files from puppy 2.xx and mess some stuff up.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

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

Joined: 21 Dec 2007
Posts: 104

PostPosted: Tue 19 Feb 2008, 22:33    Post subject:  

hello,

i ran this on 3.01 (HD install) and got the dreaded x-dialog error. i wonder if there's any way to regenerate an accurate deadpackages.txt file, so that pet-be-gone will be in sync again?

or is this handled in a remastering process?

thanks,
-steve
Back to top
View user's profile Send private message 
xekarfwtos

Joined: 19 Feb 2008
Posts: 7

PostPosted: Thu 21 Feb 2008, 04:20    Post subject:  

Hi

I found a little bug in Pet-be-gone (running it on Puppy 3.0.1). When there is a "on" in the packet description, it changes this "on" to "off" and not the correct.

For example
I uninstall the packet gxine.
The correct line in deadpackages.txt and livepackages.txt after removing gxine should be
Quote:
"gxine-0.5.11" "gxine-0.5.11: GTK+ media player based on Xine" off "SLACK12 +xine-lib 584K" \

but the application create this line
Quote:
"gxine-0.5.11" "gxine-0.5.11: GTK+ media player based off Xine" on "SLACK12 +xine-lib 584K" \
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 6 [78 Posts]   Goto page: 1, 2, 3, 4, 5, 6 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.1217s ][ Queries: 11 (0.0039s) ][ GZIP on ]