I'm not new to Linux, but I am new to CentOS; I recently started exploring CentOS for a new VPS, and decided to go with CentOS 6. I'm migrating a website that runs on Django + Apache + MySQL over to this VPS. I was a little surprised that there doesn't appear to be an RPM in any of the stock repositories that includes Django. I'm even more surprised since when I Googled "yum install Django", I got plenty of hits for CentOS 5.x. Why is this package missing from 6.0, and will it be added back?
Meanwhile, what's the recommendation for what I should do right now? I could install Django directly into the system, but that seems to be very strongly discouraged (e.g., [url=http://wiki.centos.org/PackageManagement/SourceInstalls]here[/url]). Should I look into rolling my own RPM? I've never done that before, but I'm game if it's the CentOS way of doing things.
Thanks for any contributions!
Package in CentOS 5 but not in 6 - recommended solution?
-
- Posts: 2
- Joined: 2011/10/06 06:10:35
Re: Package in CentOS 5 but not in 6 - recommended solution?
Welcome to the CentOS fora.
Django is in the Epel repository:
[code]# yum list django
Loaded plugins: fastestmirror, priorities, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: centos.aol.com
* epel: archive.linux.duke.edu
* extras: centos-distro.cavecreek.net
* rpmforge: apt.sw.be
* updates: centos.aol.com
1062 packages excluded due to repository priority protections
Available Packages
Django.noarch 1.2.6-2.el6 epel[/code]
Make sure when adding [url=http://wiki.centos.org/AdditionalResources/Repositories?highlight=%28repositories%29]3rd party repositories[/url] you also install and configure [url=http://wiki.centos.org/PackageManagement/Yum/Priorities]yum-plugin-priorities[/url].
Django is in the Epel repository:
[code]# yum list django
Loaded plugins: fastestmirror, priorities, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: centos.aol.com
* epel: archive.linux.duke.edu
* extras: centos-distro.cavecreek.net
* rpmforge: apt.sw.be
* updates: centos.aol.com
1062 packages excluded due to repository priority protections
Available Packages
Django.noarch 1.2.6-2.el6 epel[/code]
Make sure when adding [url=http://wiki.centos.org/AdditionalResources/Repositories?highlight=%28repositories%29]3rd party repositories[/url] you also install and configure [url=http://wiki.centos.org/PackageManagement/Yum/Priorities]yum-plugin-priorities[/url].
-
- Posts: 2
- Joined: 2011/10/06 06:10:35
Re: Package in CentOS 5 but not in 6 - recommended solution?
Thanks, I got epel (and yum-plugin-priorities) set up just fine and this looks like a good way to go. I appreciate the help!
Re: Package in CentOS 5 but not in 6 - recommended solution?
Thanks from me as well. Instead of using yum-plugin-priorities, I added includepkgs=Django* to /etc/yum.repos.d/epel.repo since I don't plan on using anything else from EPEL right now.
Do you think it's ok that the available version of django is 1.2.6 while the homepage says that users of that version should upgrade to 1.2.7?
Do you think it's ok that the available version of django is 1.2.6 while the homepage says that users of that version should upgrade to 1.2.7?
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Package in CentOS 5 but not in 6 - recommended solution?
That is something to take up with EPEL.