Author Topic: Removing a partially installed package?  (Read 1232 times)

mjh

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • http://
Removing a partially installed package?
« on: March 28, 2004, 03:57:56 pm »
I\'ve been trying to install opie-mediaplayer2 into OZ 3.3.5, but I keep running into problems.  That package has a large number of dependancies, and pretty much all of them only partially install.  So I\'ve got a huge number of files littered on my SD card.  Is there a way to get rid of them without manually searching for each file?

(I apologize for the barage of n00b questions.  I hope this is the right forum for that)

Thanks in advance.

BlackCardinal

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
    • http://www.gelhaus.net
Removing a partially installed package?
« Reply #1 on: March 28, 2004, 06:53:02 pm »
If the installation went far enough to show up in the list returned by ipkg status, you can just uninstall it with ipkg remove packagename.  If not, you could try forcing it to install and then remove it:
Code: [Select]
# ipkg --force-depends packagename

# ipkg remove packagename

If those don\'t work, I would then manually remove each file, as you suggest.  Since an IPK is just a gzipped tar archive, you can find out where it put the files by looking at the data.tar.gz file within the IPK:
Code: [Select]
# mkdir tmp

# cd tmp

# tar zxvf /path/to/packagename

# tar ztf data.tar.gz

./path/to/some/file

./path/to/another/file

  .

  .

./path/to/last/file

# cd ..

# rm -f tmp

Don\'t forget that if you were installing to you SD card then /mnt/card should be prefixed before each file path given within data.tar.gz
BlackCardinal : http://www.gelhaus.net : Zaurus page

SL-C1000, Cacko ROM v1.23
Lexar SD 512MB, Kingston CF 512MB
Symbol Spectrum24 CF 802.11b

SL-5500 Sharp ROM v3.10
Lexar SD 256MB
Pocketop keyboard, Nutshell 207 leather case