| Author |
Message |
lilhelper

Joined: 08 Mar 2012 Posts: 26
|
Posted: Tue 20 Mar 2012, 08:11 Post subject:
uninstall via console? |
|
Is it possible?
|
|
Back to top
|
|
 |
sfeeley
Joined: 14 Feb 2010 Posts: 807
|
Posted: Wed 21 Mar 2012, 08:48 Post subject:
|
|
No one has replied so, I'll write a bit, despite my ignorance of the answer
First: what do you mean by uninstall? Do you mean uninstall puppy? Do you mean uninstall programs?
If you mean uninstall puppy do you mean frugal or full?
If you are uninstalling a frugal install of puppy, I assume at boot you can hit f2 to get boot parameters.
then when puppy boots, go to console. From there use standard console commands to delete your savefile and the other puppy files from the harddrive
at boot you could also use the nox command to boot straight to console.
|
|
Back to top
|
|
 |
postfs1

Joined: 27 Mar 2010 Posts: 831
|
Posted: Wed 21 Mar 2012, 10:42 Post subject:
|
|
Manipulations with PET files --->
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Installation >>>
- - - - - - - - - - - - - - - - - - -
| Code: |
#!/bin/bash
cd /tmp ;
if [ `grep -w -s -c 'mesa-7.6-q1.pet..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 0 ] ;
then echo "mesa-7.6-q1.pet..rm" >/usr/local/etc/additional_things.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/IceCat/PET_files/mesa-7.6-q1.pet ;
if [ ! `echo -e "3fb259119ae7df9b9973eee65326ebe2 mesa-7.6-q1.pet" | md5sum -c - >/tmp/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /tmp/.md-5.sm` ] ; then cat /tmp/.md-5.sm ; else dialog --msgbox "`cat /tmp/.md-5.sm`" 10 40 ; fi ;
sleep 0.5s ;
/usr/local/petget/installpkg.sh mesa-7.6-q1.pet 2>/dev/null ;
sleep 0.5s ;
echo "mesa-7.6-q1.pet..rm" >/usr/local/etc/additional_things.dsktop ;
rm /tmp/.md-5.sm ;
fi ;
|
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Deinstallation >>>
- - - - - - - - - - - - - - - - - - -
| Code: |
#!/bin/bash
cd /tmp ;
if [ `grep -w -s -c 'mesa-7.6-q1.pet..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 1 ] ;
then sed -i '/mesa-7.6-q1.pet..rm/d' /usr/local/etc/additional_things.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/IceCat/PET_files/mesa-7.6-q1.pet ;
echo -e "3fb259119ae7df9b9973eee65326ebe2 mesa-7.6-q1.pet" | md5sum -c - | cat ;
pet2tgz mesa-7.6-q1.pet ; bash -c "`tar -tf mesa-7.6-q1.tar.gz | cut -d '/' -f 2-7 | sed 's/^/rm -f \//' | sed 's/$/ ;/'`" ;
sleep 0.5s ;
bash -c "`tar -tf mesa-7.6-q1.tar.gz | cut -d '/' -f2- | sed 's/usr\//\/usr\//' | rev | cut -d '/' -f2- | rev | sort -u | sed 's/^/rmdir --ignore-fail-on-non-empty -p /' | sed 's/$/ ;/' | grep '/'`" ;
sed -i '/mesa-7.6-q1.pet..rm/d' /usr/local/etc/additional_things.dsktop ;
rm /tmp/mesa-7.6-q1.tar.gz ;
fi ;
#
if [ `grep -s -c '..rm' /usr/local/etc/additional_things.dsktop | awk -F^ '{ sum +=$1 } END { print sum }'` -gt 0 ] ;
then sleep 0.5s ; else
rm /usr/local/etc/additional_things.dsktop ; fi ;
#
sed -i '/mesa-7.6-q1.pet/d' /root/.packages/user-installed-packages ;
|
Edit: 2012, jul 5.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
<---- Manipulations with PET files.
A script's content can be copied into text editor by means of <Quote> mode.
_________________
- I don't know why laboratories are named a hospitals.
- The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.
Last edited by postfs1 on Thu 05 Jul 2012, 07:29; edited 1 time in total
|
|
Back to top
|
|
 |
lilhelper

Joined: 08 Mar 2012 Posts: 26
|
Posted: Thu 22 Mar 2012, 10:34 Post subject:
|
|
I thought about something like or .
|
|
Back to top
|
|
 |
postfs1

Joined: 27 Mar 2010 Posts: 831
|
Posted: Fri 23 Mar 2012, 02:36 Post subject:
|
|
| lilhelper wrote: | | I thought about something like or . |
I didn't check, but perhaps such a things exist in the "GParted" OS or in the "PartedMagic" OS.
_________________
- I don't know why laboratories are named a hospitals.
- The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.
|
|
Back to top
|
|
 |
James C

Joined: 26 Mar 2009 Posts: 4741 Location: Kentucky
|
Posted: Fri 23 Mar 2012, 02:47 Post subject:
|
|
| lilhelper wrote: | | I thought about something like |
Used in Debian...
Gentoo.
|
|
Back to top
|
|
 |
lilhelper

Joined: 08 Mar 2012 Posts: 26
|
Posted: Tue 27 Mar 2012, 08:47 Post subject:
|
|
No console-update-syntax?
Only puppy-package-manager?
|
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6179 Location: Auckland, New Zealand
|
Posted: Tue 27 Mar 2012, 09:55 Post subject:
|
|
I'm pretty sure I read at some time in the past that it was possible. I don't know about now.
_________________ DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
|
|
Back to top
|
|
 |
starhawk
Joined: 22 Nov 2010 Posts: 1805 Location: Everybody knows this is nowhere...
|
Posted: Tue 27 Mar 2012, 21:40 Post subject:
|
|
Why do you want to uninstall from terminal? If you mucked up the video, just boot from the CD and type the following at the "boot:" prompt:
You can then go in and mount your save file (it won't change the video around, I promise!) and extract the old files, delete the old (bad) save file, and then make a new one.
If you really want to go back to Windblows, just put your Microsux CD in and boot from that; it'll chase away ypur Puppy in a heartbeat.
gparted or Parted Magic will take care of reformatting the drive if you want to switch to another Linux distro (or go back to Windblows, for that matter).
_________________ siht daer nac uoy fi uoy od os dna skcor yppup 
|
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6179 Location: Auckland, New Zealand
|
Posted: Tue 27 Mar 2012, 23:01 Post subject:
|
|
They're asking about uninstalling a package, not Puppy.
_________________ DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
|
|
Back to top
|
|
 |
|