Not the answer you need?
Register and ask your own question!

Need To Purge percona-server-server-5.6 without any prompt?

HarshadHarshad EntrantInactive User Role Beginner
Hi Team,

I am using Percona Server on Ubuntu and Debian distrributions.
I want to purge percona-server-server-5.6 package without any prompt.
I used this command to purge package `apt-get -y purge percona-server-server-5.6` .
It still prompts though i used '-y' option.

Could you tell me how should i purge percona-server-server-5.6 without prompt?

Comments

  • jriverajrivera Percona Support Engineer Percona Staff Role
    Harshad,

    You can run this to avoid the prompt:
    ---
    [email protected]:/# export DEBIAN_FRONTEND=noninteractive; apt-get -y purge percona-server-server-5.6 percona-server-client-5.6
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
    libnet-daemon-perl libaio1 libdbi-perl libmysqlclient18 libperconaserverclient18.1 libdbd-mysql-perl libplrpc-perl percona-server-common-5.6
    Use 'apt-get autoremove' to remove them.
    The following packages will be REMOVED:
    percona-server-client-5.6* percona-server-server-5.6*
    0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
    After this operation, 141 MB disk space will be freed.
    (Reading database ... 17711 files and directories currently installed.)
    Removing percona-server-server-5.6 ...
    * Stopping MySQL (Percona Server) mysqld [ OK ]
    Purging configuration files for percona-server-server-5.6 ...
    Removing percona-server-client-5.6 ...
    Processing triggers for ureadahead ...

    Please note that the default setting is to not remove all databases from the datadir.

    You can then run:
    ---
    [email protected]:/# export DEBIAN_FRONTEND=dialog

    to revert back to the default frontend setting.

    Is Percona Server installed on your staging/testing environment? Are you evaluating Percona Server 5.6?

    Let us know if the above suggestion helps.
  • HarshadHarshad Entrant Inactive User Role Beginner
    Thank you jrivera, for your reply.
    But it didn't solve my problem completely.
    after export DEBIAN_FRONTEND=noninteractive; apt-get -y purge percona-server-server-5.6 percona-server-client-5.6; it didn't prompt me for remove files from /var/lib/mysql/.
    but it didnot removed files from /var/lib/mysql/ .
    I want to purge percona-server-server-5.6 completely.
    How do i achieve that??
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.