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 Sun 19 May 2013, 14:36
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
uninstall via console?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
lilhelper


Joined: 08 Mar 2012
Posts: 26

PostPosted: Tue 20 Mar 2012, 08:11    Post subject:  uninstall via console?  

Is it possible?
Back to top
View user's profile Send private message 
sfeeley

Joined: 14 Feb 2010
Posts: 807

PostPosted: Wed 21 Mar 2012, 08:48    Post subject:  

No one has replied so, I'll write a bit, despite my ignorance of the answer Very Happy

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.
Code:
puppy pfix=ram


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


Joined: 27 Mar 2010
Posts: 831

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


Joined: 08 Mar 2012
Posts: 26

PostPosted: Thu 22 Mar 2012, 10:34    Post subject:  

I thought about something like
Code:
apt-get
or
Code:
emerge
.
Back to top
View user's profile Send private message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Fri 23 Mar 2012, 02:36    Post subject:  

lilhelper wrote:
I thought about something like
Code:
apt-get
or
Code:
emerge
.


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
View user's profile Send private message 
James C


Joined: 26 Mar 2009
Posts: 4740
Location: Kentucky

PostPosted: Fri 23 Mar 2012, 02:47    Post subject:  

lilhelper wrote:
I thought about something like
Code:
apt-get


Used in Debian...


lilhelper wrote:
Code:
emerge
.


Gentoo.
Back to top
View user's profile Send private message 
lilhelper


Joined: 08 Mar 2012
Posts: 26

PostPosted: Tue 27 Mar 2012, 08:47    Post subject:  

No console-update-syntax?

Only puppy-package-manager?
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6179
Location: Auckland, New Zealand

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

Joined: 22 Nov 2010
Posts: 1801
Location: Everybody knows this is nowhere...

PostPosted: 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:
Code:
puppy pfix=ram

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 Razz
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6179
Location: Auckland, New Zealand

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
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.0614s ][ Queries: 11 (0.0059s) ][ GZIP on ]