I am a beginner in Linux and have trouble installing PostgreSQL today.
I need to install PostgreSQL8.2 now, but enter the command in the console: emerge PostgreSQL-pv to search for only PostgreSQL8.0. However, I need to install version 8.2, what should I do?
There are two solutions: first, download the 8.2 version package directly from the PostgreSQL official website, and then follow the installation steps on the local machine (the file is iinstall under PostgreSQL) install it manually.
Another method is to still use the emerge command, followed by the version you need to install: ACCEPT_KEYWORDS = "~ X86 "emerge = PostgreSQL-8.2.7, then the installation is successful automatically.
Then, if you want to set it to the default startup, the method is: rc-update add PostgreSQL default.
Of course, I have tried both methods and shared them with you.