phpMyAdmin updatescript for your shell
This script will update your current phpMyAdmin to the latest version directly from your shell.
Copy the script to any location of your machine.
IMPORTANT: You need to do some configurations, see Settings below.
If you want to install a cronjob, run
You can set basic settings directly in the
pma-update.sh, but better use the user oder system wide settings.
LOCATIONsets the path to
pma-update.sh(this setting is mandatory)
CURRENTsets the name of the symlink to the current PMA installation, default is
LANGUAGEof PMA. Leave it blank (default) for all languages or specify a language pack, for example: english
USERis the owner of the PMA files
GROUPis the owning group of the PMA files
CTPYEchanges the compression type - "tar.gz" and "tar.bz2" are possible.
0for quit mode (no output)
1to output warnings (DEFAULT)
2to output all messages
FORCEinstallation if set to
KEEPdefines how many versions are kept during clean up
0(or below) don't delete any
User based settings
Instead of changing the settings in the script, you can place the variables in a user based
~/.pma-update.conf file in the home folder from the user this script runs as.
System wide settings
Instead of changing the settings in the script or using an user based setting file, you can install a system wide file at
/etc/pma-update.conf, basing on the sample file
For updating phpMyAdmin to the latest version, execute the shell script like this:
If you want to install a specific version
sh pma-update.sh -r 3.5.0
If you want only to clean up any other than the actual version (i.e. by a cron job)
sh pma-update.sh -d 1
sh pma-update.sh [-hvf] [-r version] -h this help -v output all warnings -f force download, even if this version is installed already -r version choose a different `version` than the latest -d number delete old versions, but keep `number`