OESF Portables Forum

General Forums => General Discussion => Topic started by: mjh on March 28, 2004, 03:57:56 pm

Title: Removing a partially installed package?
Post by: mjh 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.
Title: Removing a partially installed package?
Post by: BlackCardinal 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