On Sat, Jun 04, 2005 at 10:20:09PM -0400, Rick DeNatale wrote: # On 6/4/05, H?nandil hinandil@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
$ ln -s wiki mediawiki-1.4.5 $ gzip -dc mediawiki-1.4.5.tar.gz | tar xf - $ rm mediawiki-1.4.5
Otherwise you lose all of your images, right? Make it a one-liner by separating the commands with &&
-Sam