stupid_idiot
Group: Members
Posts: 344
Joined: Oct. 2006 |
|
Posted: Dec. 19 2007,17:11 |
|
Err, I'll try to answer question (1) in this post and question (2) in the next post.
Presently there are 2 types of MyDSL extensions: The mounted type and the tarball type. 'Mountable' extensions: .uci and .unc 'tarball'-type extensions: .dsl and .tar.gz
For .uci and .unc extensions, we load the extension by mounting the extension file as a loop device and access its content directly. Thus no extra RAM space is needed beyond what is taken up by the extension file itself.
For the .dsl and .tar.gz extensions: Both .dsl and .tar.gz extensions are really just gzip-compressed tar archives. (Background info: Tar (file format) [en.wikipedia.org]) When we load them, we are extracting the uncompressed contents into DSL's main filesystem, which resides on RAM. .dsl extensions can/will put files anywhere in the filesystem. .tar.gz extensions use only these directories: '/home/', '/opt/' and '/tmp/'. To keep a long story short, 'tar.gz' extensions are at least more predictable if not more self-contained than '.dsl' extensions.
Uninstalling: For .uci and .unc extensions, locate the relevant .uci or .unc extension file, and do:Code Sample | mydsl-load <FILENAME>.uci | In your case, if the relevant extension is already loaded, this command will unload it. If you run the command again, the extension will be loaded again. (Ad infinitum.)
For .dsl and .tar.gz extension, we can use Tar to list the files in the extension file, and then remove those files from our system. Since .dsl/.tar.gz extensions are gzip-compressed tar archives, we should run Tar with the following one-letter options:f = tells Tar to expect a filename t = list archive contents z = specify that contents must be passed through gzip to be uncompressed first before passing through Tar Thus, the actual command will go like this:Code Sample | tar ftz <FILENAME>.dsl | If there are too many files to fit on the screen buffer, you could pipe the output to 'less' so that you can read it:Code Sample | tar ftz <FILENAME>.dsl | less | The one-letter options can be specified in any order you want. Also, note that every one-letter option may have an equivalent 'long option'. For example: 't' is equivalent to the long option '--list'. However, note that long options must be placed last in the command. The following is wrong:Code Sample | tar fz --list <FILENAME>.tar.gz | The following is correct:Code Sample | tar fz <FILENAME>.tar.gz --list |
Once you have listed the file contents, you can start removing them with the 'rm' command.
|