12/11/2023 0 Comments Yum remove previous postgresql install![]() ![]() Familiarize with PostgreSQL Access the database shellīecome the postgres user. Tip: If you did not grant your new user database creation privileges, add -U postgres to the previous command. If these are the kind of lines you see, then the process succeeded. Pg_ctl -D /var/lib/postgres/data -l logfile start You can now start the database server using: auth-local and -auth-host, the next time you run initdb. You can change this by editing pg_hba.conf or using the option -A, or WARNING: enabling "trust" authentication for local connections Performing post-bootstrap initialization. Selecting dynamic shared memory implementation. The default text search configuration will be set to "english".įixing permissions on existing directory /var/lib/postgres/data. The default database encoding has accordingly been set to "UTF8". The database cluster will be initialized with locale "C.UTF-8". This user must also own the server process. The files belonging to this database system will be owned by user "postgres". Many lines should now appear on the screen with several ending by. $ initdb -locale=C.UTF-8 -encoding=UTF8 -D /var/lib/postgres/data -data-checksums For more options, see initdb -help and official documentation.You can use -auth-local=peer -auth-host=scram-sha-256 for safer authentication methods. The trust authentication method is used by default, meaning that anyone on the host can connect as any database user.(Once the database is up, you can check if it is enabled with $ psql -c "SHOW data_checksums".) Read #Enable data checksumming for more information. If your data directory resides on a file system without data checksumming, you may wish to enable PostgreSQL's built-in checksumming for increased integrity guarantees - add the -data-checksums argument to do so.– To Configure yum to auto-remove old kernels, update the /etc/yum.conf configuration file by changing the value of installonly_limit option with the desired number of old kernels on your system to be kept after every system update, The minimum value to be set is 2 # vi /etc/yum.Note: Using a locale other than C.UTF-8, C, POSIX or ucs_basic can result in a collation version mismatch that will require reindexing if the library providing the locale ( glibc or icu) gets updated. – In the below example using -oldkernels -count=2 option with package-cleanup command we will remove all unused kernel while keeping last two most recent kernel versions installed # package-cleanup -oldkernels -count=2 – First make sure to install the yum-utils package as below: # yum install yum-utils ![]() – Using package-cleanup command which is a part of yum-utils package we can uninstall any number of old kernels automatically. Remove old unused kernel automatically using package-cleanup ![]() – To remove old Kernels, we can proceed manually by uninstalling old kernel pakages using the yum remove or by using the package-cleanup command which is a part of yum-utils package: Remove Manually # yum remove kernel-3.10.0-327.36.3.el7.x86_64 kernel-3.10.0-514.2.2.el7.x86_64 kernel-3.10.0-693.21.1.el7.x86_64 – To get all the installed kernels on your server, use the following command: # rpm -qa kernel Step 2./ Listing all the installed kernels – To check which kernel is currently used by your server, it a bit easy just run the below command: # uname -a In this quick tutorial, you will learn how to remove old unused Kernels on CentOS or RHEL servers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |