CentOS8 postgresql installation #3683

Closed
opened 2025-12-29 18:30:35 +01:00 by adam · 9 comments
Owner

Originally created by @fgadot on GitHub (May 13, 2020).

Change Type

[X ] Addition
[ ] Correction
[ ] Deprecation
[ ] Cleanup (formatting, typos, etc.)

Area

[X ] Installation instructions
[ ] Configuration parameters
[ ] Functionality/features
[ ] REST API
[ ] Administration/development
[ ] Other

Proposed Changes

While using CentOS8, the way to install the latest version of postgresql is not correct. The current documentation talks about CenOS 7.5 , and postgresql 9.6

Proposed update (add on to current CentOS 7.5):
With CentOS8, run the following command to install postgresql 10.x:
yum install postgresql postgresql-server postgresql-devel

Originally created by @fgadot on GitHub (May 13, 2020). ### Change Type [X ] Addition [ ] Correction [ ] Deprecation [ ] Cleanup (formatting, typos, etc.) ### Area [X ] Installation instructions [ ] Configuration parameters [ ] Functionality/features [ ] REST API [ ] Administration/development [ ] Other <!-- Describe the proposed change(s). --> ### Proposed Changes While using CentOS8, the way to install the latest version of postgresql is not correct. The current documentation talks about CenOS 7.5 , and postgresql 9.6 Proposed update (add on to current CentOS 7.5): With CentOS8, run the following command to install postgresql 10.x: yum install postgresql postgresql-server postgresql-devel
adam closed this issue 2025-12-29 18:30:35 +01:00
Author
Owner

@fgadot commented on GitHub (May 13, 2020):

Also, initializing the database should be done (on CentOS8 / postgresql 10.x) with

/usr/bin/postgresql-setup --initdb --unit postgresql

@fgadot commented on GitHub (May 13, 2020): Also, initializing the database should be done (on CentOS8 / postgresql 10.x) with /usr/bin/postgresql-setup --initdb --unit postgresql
Author
Owner

@fgadot commented on GitHub (May 13, 2020):

My apologies with all the comments. I am going through the install now on CentOS 8.
The pg_hba.conf is in /var/lib/pgsql/data/pg_hba.conf (not pgsql/9.6/)

@fgadot commented on GitHub (May 13, 2020): My apologies with all the comments. I am going through the install now on CentOS 8. The pg_hba.conf is in /var/lib/pgsql/data/pg_hba.conf (not pgsql/9.6/)
Author
Owner

@jeremystretch commented on GitHub (May 13, 2020):

The documentation currently supports only CentOS 7.5. Please see #4507.

@jeremystretch commented on GitHub (May 13, 2020): The documentation currently supports only CentOS 7.5. Please see #4507.
Author
Owner

@fgadot commented on GitHub (May 13, 2020):

I read and understand #4507
Since I am going through the installation with CentOS 8, how about we update only the differences with CentOS 7.5 and CentOS 8. Not ALL the documentation needs to be redone, and it is not dramatically different. NetBox will work on it, it's just a couple of things here and there. I do not mind editing the documentation source file and submitting a new pull request if you want. One can say that CentOS 8 is "too new" , but in many IT departments (like mine), we test ahead. Whatever I write for the installation now will still be the same thing regardless of the version of CentOS 8.x. Minus start now, no?

@fgadot commented on GitHub (May 13, 2020): I read and understand #4507 Since I am going through the installation with CentOS 8, how about we update only the differences with CentOS 7.5 and CentOS 8. Not ALL the documentation needs to be redone, and it is not dramatically different. NetBox will work on it, it's just a couple of things here and there. I do not mind editing the documentation source file and submitting a new pull request if you want. One can say that CentOS 8 is "too new" , but in many IT departments (like mine), we test ahead. Whatever I write for the installation now will still be the same thing regardless of the version of CentOS 8.x. Minus start now, no?
Author
Owner

@adamwoolhether commented on GitHub (Jun 30, 2020):

@fgadot mind sharing what the other differences are, if any?

@adamwoolhether commented on GitHub (Jun 30, 2020): @fgadot mind sharing what the other differences are, if any?
Author
Owner

@fgadot commented on GitHub (Jun 30, 2020):

@adamwoolhether Sorry, since @jeremystretch didn't seem interested, I just trashed my notes and figured out if I had to reinstall, I will figure it out at the time I will do it again...

@fgadot commented on GitHub (Jun 30, 2020): @adamwoolhether Sorry, since @jeremystretch didn't seem interested, I just trashed my notes and figured out if I had to reinstall, I will figure it out at the time I will do it again...
Author
Owner

@chicks-net commented on GitHub (Jun 30, 2020):

@fgadot Thanks for trying. I'm sorry there was no community on the Internet ready to preserve the knowledge you gained for us.

@chicks-net commented on GitHub (Jun 30, 2020): @fgadot Thanks for trying. I'm sorry there was no community on the Internet ready to preserve the knowledge you gained for us.
Author
Owner

@adamwoolhether commented on GitHub (Jul 1, 2020):

@fgadot no worries, it was helpful the bit you shared above.

I'm kind of confused about the lack of willingness to improve documentation for specific distributions, despite the issue inquiries that come up and willingness of the community to help... The whole section on HTTP server setup explicitly state only ubuntu is included. which again isn't a big deal, but it feels incomplete.

but it's out of my control and isn't a huge issue. thanks for the help!

@adamwoolhether commented on GitHub (Jul 1, 2020): @fgadot no worries, it was helpful the bit you shared above. I'm kind of confused about the lack of willingness to improve documentation for specific distributions, despite the issue inquiries that come up and willingness of the community to help... The whole section on HTTP server setup explicitly state only ubuntu is included. which again isn't a big deal, but it feels incomplete. but it's out of my control and isn't a huge issue. thanks for the help!
Author
Owner

@adamwoolhether commented on GitHub (Sep 30, 2020):

For anyone interested in an easy way to install NetBox on CentOS 8: I've had to do it a few times, so I decided to automate the process and put it into a playbook.
Hope it's useful: https://github.com/adamwoolhether/NetBox4CentOS8

Thanks to @fgadot for the above info, helping with my initial install!

@adamwoolhether commented on GitHub (Sep 30, 2020): For anyone interested in an easy way to install NetBox on CentOS 8: I've had to do it a few times, so I decided to automate the process and put it into a playbook. Hope it's useful: https://github.com/adamwoolhether/NetBox4CentOS8 Thanks to @fgadot for the above info, helping with my initial install!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3683