Remove a folder after a 'true' uninstall....


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Remove a folder after a 'true' uninstall....
# 8  
Old 05-18-2012
I'm confused... LOL!
What's the benefit of seeing if Cydia is setting relevant variables? I guess I don't understand what that means and/or why it's done.

Again...I'm new to scripting so I don't know very much about what does what and why one would do certain things. Sorry...

---------- Post updated at 10:53 AM ---------- Previous update was at 10:51 AM ----------

So in my original script, is there not a way to differentiate between an uninstall, a reinstall and an upgrade?
# 9  
Old 05-18-2012
Quote:
Originally Posted by thazsar
I'm confused... LOL!
What's the benefit of seeing if Cydia is setting relevant variables? I guess I don't understand what that means and/or why it's done.
It might be setting a variable you can use to tell the difference between a uninstall, reinstall, and upgrade. There's very few other ways it could tell you so, so it's the obvious thing to check. That would be handy if it does, and really hard to do without if it doesn't.

It might also be setting parameters, so also add echo "Parameters are $@" to see what they are too.

So do an uninstall, look at the file's contents, maybe post them here. Then do a reinstall, look at the file's contents, post them here. Etc. Look for differences. Hopefully it'll be obvious enough.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Remove folder contents

for dir in BKP/*/ do echo You are in :$dir done O/P -- BKP/201448/ BKP/201449/ BKP/201450/ BKP/201451/ BKP/201452/ BKP/201501/ BKP/201502/ BKP/201503/ BKP/201504/ BKP/201505/ BKP/201506/ BKP/201507/ (3 Replies)
Discussion started by: rocking77
3 Replies

2. Shell Programming and Scripting

Remove trailing space from file and folder names

I have a folder that contains many sub folders and files. This tree has to be backed up to an archive system. According to the tech support, one of the archives is failing to back up due to the possibility of trailing spaces on file and folder names. Therefore, I would like to have a script... (16 Replies)
Discussion started by: vipertech
16 Replies

3. Shell Programming and Scripting

Remove all folders within another folder except the lastest 1, 2 or 3.

I am using this command to remove all files and folders older than 24 hours; find /databackup/dbs/* -maxdepth 0 -type d -mtime +0 -exec rm -rf {} \; However, if/when backups to this folder fail and are not updated, it will completely destroy any backups we have in that folder. What can I add... (14 Replies)
Discussion started by: damang111
14 Replies

4. Shell Programming and Scripting

recursively remove javascript from all folder index files

Hi All, A site I manage had some javascript inserted into each folders index file. Can anyone priovide me with some ideas on how to use awk, sed or some other bash script to parse through each of the site folders and remove this code? If I have to do it by hand I'm going to go insane. :eek: ... (2 Replies)
Discussion started by: lsalsich
2 Replies

5. UNIX for Dummies Questions & Answers

Unable to remove folder in linux

Hi I am using red hat linux, In my folder a strange folder is created i.e. " -a " , folder name is preceded with hyphen. Now if i try to remove with rm -rf -1 , i am unable to do it. Can anyone please let me know how to do it, & what this kind of folder means Thanks Sarbjit (3 Replies)
Discussion started by: sarbjit
3 Replies

6. Shell Programming and Scripting

remove all duplicate lines from all files in one folder

Hi, is it possible to remove all duplicate lines from all txt files in a specific folder? This is too hard for me maybe someone could help. lets say we have an amount of textfiles 1 or 2 or 3 or... maximum 50 each textfile has lines with text. I want all lines of all textfiles... (8 Replies)
Discussion started by: lowmaster
8 Replies

7. BSD

Remove (uninstall) games and mail in netbsd

hi all, I am currently only need several basic applications for my box (basically : asterisk,apache-php,ssh) . However, i somehow running out of 1 Giga of my compact flash because the base installation in netbsd includes some softwares that I occasionally use Does any of you could guide me... (0 Replies)
Discussion started by: dsp
0 Replies

8. Shell Programming and Scripting

Remove zero bytes files in folder

Hi, Please shed some light on how to quickly remove all the zero bytes in which there are some mixtures of more than zero bytes in it. For eg: > ls -lrt -rw-r--r-- 1 ab noen 0 Jul 27 15:47 supplier_mp.unl -rw-rw-r-- 1 ab noen 507 Aug 5 14:13... (2 Replies)
Discussion started by: cedrichiu
2 Replies

9. Solaris

Perl - How to uninstall? Will pkgrm uninstall all versions?

Hello, I'm working on a Solaris 9/Sparc machine and it has the Solaris 10 version of Perl (5.8.8) installed on it, which always requires all kinds of library files that Solaris 9 doesn't come with. I think the best way to do is to uninstall this wrong version and install the correct Solaris 9... (1 Reply)
Discussion started by: alanlh
1 Replies
Login or Register to Ask a Question