How to uninstall an app from the console?

Booting, installing, newbie
Post Reply
Message
Author
dnelub
Posts: 4
Joined: Wed 10 Aug 2011, 17:30

How to uninstall an app from the console?

#1 Post by dnelub »

Can someone please tell me how to uninstall an application in the console?
thanks in advance

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#2 Post by amigo »

which app-name
rm result-from-above

Then ask around about any other files which are related to that application. Good luck. Seriously, it used to be sort-of-possible to remove a sort-of package from Puppy, but who knows if it still works. Since the package installer is GUI-based, any underlying scripts which help to accomplish installation or de-installation are pretty lame on their own... Ask around about properly upgrading a package... Good luck. Since the base puppy is not really assembled using packages, it's hard to sanely remove a program or lib and all that is associated with it. Good luck.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#3 Post by Flash »

You can start with the stripped-down Puppy (I forget what it's called at the moment) and add what you want to it.

dnelub
Posts: 4
Joined: Wed 10 Aug 2011, 17:30

#4 Post by dnelub »

Thanks for the answers. For example, I installed pwireless through console and it doesn't show up in package manager. I searched for it and there are several files in different folders. Should I just delete them? is this solution?

thanks again

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#5 Post by Flash »

I don't know. How large is Pwireless? If it's not very large I'd just forget about it.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Re: How to uninstall an app from the console?

#6 Post by shinobar »

# petget -SOMEPACKAGE.pet
# sfs_load -SOMEPACKAGE.sfs

But it seems another issue. Depends how you installed the package.
dnelub wrote: I installed pwireless through console and it doesn't show up in package manager.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#7 Post by Karl Godt »

Code: Select all

find /root/.packages -iname "*pwireless*.files" -exec cat {} \;
would show if there is a *pwireless*.files file which should contain all the /pathes/to/files.ext
petget had installed .
If you dont run as user root but as fido,spot or USERNAME you would need probably to replace '/root' with "$HOME" .

Another idea would be the find command with the -mtime NUMBER option , where NUMBER is 0*1*DAY

-mmin NUMBER for minutes
-ctime N change time
-cmin
-atime N access time
-amin

like

Code: Select all

find /usr -mtime 0
Also the correct name of the pwireless.pet would be helpful .

If you still have the pwireless.pet stored somewhere you could transform the pet to tar.gz with the pet2tgz command like

Code: Select all

mkdir /tmp/test
cd /tmp
cp /path/to/directory/pwireless.pet ./test
cd ./test
pet2tgz pwireless.pet
tar xzf pwireless.pet
ls -R ./*
ls -R would list everything inside the new created ./pwireless.version directory .

dnelub
Posts: 4
Joined: Wed 10 Aug 2011, 17:30

#8 Post by dnelub »

Strange, I thought I asked something very easy but it does not seem so. Apparently there is no command to uninstall an application in the console.

anyway thanks for all efforts

postfs1

#9 Post by postfs1 »

Code: Select all

#!/bin/bash
#
# # # # # # # # # # # EXAMPLES # # # # # # # # # # #
#
# # #
#STEP - 1. >>
cd /tmp ;
wget -t0 -c http://downloads.sourceforge.net/project/cafpkg/cafpkg_8.0_all.deb ;
#
# or >>> http://linux.softpedia.com/get/System/System-Administration/CafPKG-59159.shtml
#
/usr/local/petget/installpkg.sh cafpkg_8.0_all.deb 2>/dev/null  ;
#<< STEP - 1.
#
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# >> VARIANT_1 << (.pet)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# # #
#STEP - 2. >>
mkdir -p /test-LT ;
cd /test-LT ;
curl -C - -O file:///mnt/sr0/_Files/Linxtris--Game/PET_files/linxtris-0.1a2.pet ;
pet2tgz linxtris-0.1a2.pet ;
tar -xzf linxtris-0.1a2.tar.gz ;
#
cafpkg --build linxtris-0.1a2 linxtris-0.1a2/ 'linxtris-0.1a2.pet' ;
cafpkg --install /test-LT/linxtris-0.1a2.cafpkg ;
cafpkg --list ;
#
echo 'Now, the "linxtris-0.1a2" program can be used or can be removed.'
#
#cafpkg --remove linxtris-0.1a2 ;
#
# # #
#<< STEP - 2. FINISH.
# ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
#
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# >> VARIANT_2 << (.deb)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# # #
#STEP - 2. >>
mkdir -p /test-GP ;
cd /test-GP ;
curl -C - -O file:///mnt/sr0/_Files/GParted/Ubuntu-Karmic_files/gparted_0.4.5-2ubuntu1_i386.deb ;
dpkg-deb -x gparted_0.4.5-2ubuntu1_i386.deb gparted_0.4.5-2ubuntu1_i386 ;
#
cafpkg --build gparted_0.4.5-2ubuntu1_i386 gparted_0.4.5-2ubuntu1_i386/ 'gparted_0.4.5-2ubuntu1_i386.deb' ;
cafpkg --install /test-GP/gparted_0.4.5-2ubuntu1_i386.cafpkg ;
cafpkg --list ;
#
echo 'Now, the "gparted_0.4.5-2ubuntu1_i386" program can be used or can be removed.'
#
#cafpkg --remove gparted_0.4.5-2ubuntu1_i386 ;
#
# # #
#<< STEP - 2. FINISH.
# ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
#
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# >> VARIANT_3 << (.rpm)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# # #
#STEP - 2. >>
mkdir -p /test-mtP ;
cd /test-mtP ;
curl -C - -O file:///mnt/sr0/_Files/MTPaint/PCLinuxOS-2010_files/mtpaint-3.31-3pclos2010.i586.rpm ;
mkdir -p mtpaint-3.31-3pclos2010.i586 ;
rpm2cpio mtpaint-3.31-3pclos2010.i586.rpm | cpio -idv 1>& list ;
grep -v " blocks" list | cat > list ;
tar -cf archive.tar -T list ;
cut -f-2 -d/ list | cat > list ; rm -rf `cat list` ;
tar -xvf archive.tar -C mtpaint-3.31-3pclos2010.i586/ ;
rm archive.tar ;
#
cafpkg --build mtpaint-3.31-3pclos2010.i586 mtpaint-3.31-3pclos2010.i586/ 'mtpaint-3.31-3pclos2010.i586.rpm' ;
cafpkg --install /test-mtP/mtpaint-3.31-3pclos2010.i586.cafpkg ;
cafpkg --list ;
#
echo 'Now, the "mtpaint-3.31-3pclos2010.i586" program can be used or can be removed.'
#
#cafpkg --remove mtpaint-3.31-3pclos2010.i586 ;
#
# # #
#<< STEP - 2. FINISH.
# ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
#

Post Reply