On 6/4/05, HÃnandil <hinandil(a)freespirits.org> wrote:
Pablo Chamorro C. wrote:
By the way somebody knows a tip for uncompress a
mediawiki.tgz file
directly to e.g. /var/www/html/wiki/ just with one command? I mean,
without creating the initial mediawiki-1.4.5 directory path?
Uh, how about:
$ mv /var/www/html/wiki /var/www/html/wiki~
$ tar zvxf mediawiki-1.4.5.tar.gz
$ mv mediawiki-1.4.5 /var/www/html/wiki
That's what the team here likes to do. Come to think of it, that's what
I do on my personal test server (when I don't start out with rm
public_html/wiki anyway).
Well that's not the one-liner that Pablo was asking for.
It also doesn't do the whole job since you need to also move
LocalSettings.php as well as an other extensions, AND your images
directory, and whatever else I've forgotten. The upgrade instructions
recommend backing up the old installation and then unpacking the new
tarball into the old.
it probably better to use copy or rsync to make a backup of the
original directory, then do something like
tar xzvr mediawiki-1.4.5.tar.gz
mv -r mediawiki-1.4.5/* var/www/html/wiki
rmdir mediawiki-1.4.5
I'd love to know how to do these three as one command, tar doesn't
seem to have a way to extract an archive to a particular destination
directory unless I'm missing it.