RPMForge downloaded on CentOS, but still no phpmyadmin

Issues related to applications and software problems

RPMForge downloaded on CentOS, but still no phpmyadmin

Postby joao2 » 2012/04/30 20:40:37

I followed these steps:

http://dev.antoinesolutions.com/rpmforge-repository

1. But I didn't delete in step 5 because I don't yet know how to.

2. I get permission denied warning when I try to open the rpforge configuration file by typing in /etc/yum.repos.d/rpmforge.repo

3. And I get no package phpmyadmin available when I do yum install phpmyadmin. This is what worries me as I want to install phpmyadmin, php and ftp, among others.

I'm on a CentOS 6.2 dedi

Could someone be kind enough to instruct me what may be wrong?
joao2
 
Posts: 38
Joined: 2012/01/05 00:12:06

RPMForge downloaded on CentOS, but still no phpmyadmin

Postby pschaff » 2012/04/30 21:10:17

joao2 wrote:
I followed these steps:

http://dev.antoinesolutions.com/rpmforge-repository

1. But I didn't delete in step 5 because I don't yet know how to.

If you followed that exactly then you have the CentOS-5 rpmforge-release and not the correct one for CentOS-6. See the Wiki page on RPMforge repo.

2. I get permission denied warning when I try to open the rpforge configuration file by typing in /etc/yum.repos.d/rpmforge.repo

It is neither an executable nor a script, but a yum repo config, so that should be no surprise.

3. And I get no package phpmyadmin available when I do yum install phpmyadmin. This is what worries me as I want to install phpmyadmin, php and ftp, among others.

I'm on a CentOS 6.2 dedi

Could someone be kind enough to instruct me what may be wrong?

Probably not without more information. Please provide more information about your system by running "./getinfo.sh package" and showing us the output file.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: RPMForge downloaded on CentOS, but still no phpmyadmin

Postby joao2 » 2012/04/30 22:31:04

Thanks so much for the response.

Indeed, I can't believe it, but I have royally screwed up by following the instructions literally. I've even installed a red hat version of rpm on centos.

How can I erase it all?

I am typing ./getinfo.sh package into putty, but I'm being told

-bash: ./getinfo.sh: No such file or directory

Also running


[root@server1 ~]# ./getinfo.sh package
-bash: ./getinfo.sh: No such file or directory
[root@server1 ~]# "./getinfo.sh package"
-bash: ./getinfo.sh package: No such file or directory
joao2
 
Posts: 38
Joined: 2012/01/05 00:12:06

Re: RPMForge downloaded on CentOS, but still no phpmyadmin

Postby YBellefeuille » 2012/04/30 22:59:49

I am typing ./getinfo.sh package into putty, but I'm being told

-bash: ./getinfo.sh: No such file or directory


Are you perhaps forgetting the steps that say "save the script to a file using the link above, for example "getinfo.sh", or save it to a local directory, change the permissions to make it executable and run it"?

But undoing what you've done is simple enough. As root, do yum remove rpmforge-release.

And I get no package phpmyadmin available when I do yum install phpmyadmin. This is what worries me as I want to install phpmyadmin, php and ftp, among others.


Read Package Management, then read about Available Repositories for CentOS, then read about yum-plugin-priorities and install it, then, as root, install RPMForge using the instructions you've already read at Available Repositories for CentOS, then edit all the files in /etc/yum.repos.d/*.repo to add, for all repositories marked enabled=1, a line with priority= and an appropriate number as indicated in yum-plugin-priorities, and then and only then do yum install phpmyadmin.
YBellefeuille
 
Posts: 312
Joined: 2012/03/06 22:30:17
Location: Ottawa

Re: RPMForge downloaded on CentOS, but still no phpmyadmin

Postby joao2 » 2012/05/01 00:47:32


YBellefeuille wrote:

Are you perhaps forgetting the steps that say "save the script to a file using the link above, for example "getinfo.sh", or save it to a local directory, change the permissions to make it executable and run it"?

But undoing what you've done is simple enough. As root, do yum remove rpmforge-release.



Well, uninstalling worked fine. And I'd missed on that link, very interesting thanks. But I decided not to install the ElRepo repository because it would probably mess with the CentOS and because ElRepo doesn't seem to have one for CentOS 6, so I'm trying to download the getinfo script by doing wget, and I don't know how to change the permissions to make it executable. Also, once I do find out how to make it executable, I wouldn't know how to extract it out of linux in order to paste it your pastebin on the internet. It would probably end up sitting somewhere in the linux directories and I wouldn't know how to get it to my windows and its browsers.

Last time I was on a dedi, it was also CentOS and I was more of a noob than I am now, and I had a bit of hosting support then whereas now it's unmanaged server, but every single time I tried to install things from third-party repositories it would mess up with the CentOS, every single time, so my hopes are a bit despairing in that department. Support back then kept insisting I never touch third-party repositories, I kept insisting ffmpeg and whatnot required the third party repositories until I desisting and left the server to function with the scripts I'd had it running along beforehand.

Anyway, I've done a wget of http://pkgs.repoforge.org/rpmforge-rele ... x86_64.rpm and I'm getting the same package not found message I got with the wrong rpmforge download. This is due to my inability to edit files, as you describe the solution below.

You say that /etc/yum.repos.d/rpmforge.repo isn't an executable, is this why it can't be opened? Would I have to learn how to change it to an executable to complete the steps in the guide?


YBellefeuille wrote:

then edit all the files in /etc/yum.repos.d/*.repo to add, for all repositories marked enabled=1, a line with priority= and an appropriate number as indicated in yum-plugin-priorities


[/quote]

As per your instructions, how do I edit files in that directory, and how do I find out which of the files in that directory are ''marked enabled=1''?

Once I do know how to edit them, would an appropriate N where priority=N be 1 for the RPM repository, the reason being so it would have the same priority as the CentOS Base that is probably already installed with that priority level?
joao2
 
Posts: 38
Joined: 2012/01/05 00:12:06

Re: RPMForge downloaded on CentOS, but still no phpmyadmin

Postby joao2 » 2012/05/01 05:37:03

Hey buddy I noticed you didn't respond to this post. Was it incoherent or is it offtopic as knowing how to edit files belongs in a linux forum, not a centos forum?
joao2
 
Posts: 38
Joined: 2012/01/05 00:12:06

Re: RPMForge downloaded on CentOS, but still no phpmyadmin

Postby pschaff » 2012/05/01 12:13:59

joao2 wrote:
Hey buddy I noticed you didn't respond to this post. Was it incoherent or is it offtopic as knowing how to edit files belongs in a linux forum, not a centos forum?

This support system is run and manned (or womanned :-) ) by volunteers. Many people come and go. Nobody is here 24/7.

...so I'm trying to download the getinfo script by doing wget, and I don't know how to change the permissions to make it executable. Also, once I do find out how to make it executable, I wouldn't know how to extract it out of linux in order to paste it your pastebin on the internet.

The use of wget should be good. There are quite explicit instructions in How to provide information about your system.

It would probably end up sitting somewhere in the linux directories and I wouldn't know how to get it to my windows and its browsers.

It will be sitting in the directory where you put it. How you transfer the output file to Windows is up to you. I'd use something like WinSCP, or scp from PuTTY.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: RPMForge downloaded on CentOS, but still no phpmyadmin

Postby joao2 » 2012/05/01 13:09:39

pschaff wrote:

The use of wget should be good. There are quite explicit instructions in How to provide information about your system.


Thanks, but I did:

wget https://raw.github.com/elrepo/packages/ ... getinfo.sh
chmod +x getinfo.sh
cat - > getinfo.sh

And it just sits there, stuck, as a new line and without even allowing me to log out or get to another command line.

I was thinking the chmod part changes it to an exe.

I also tried the cat line before trying to chmod, and maybe even before I downloaded the package, always with the same result.
joao2
 
Posts: 38
Joined: 2012/01/05 00:12:06

Re: RPMForge downloaded on CentOS, but still no phpmyadmin

Postby joao2 » 2012/05/01 13:55:07

Ok, I just found out that 'cat > file means edit the file :)

Anyway, so I set the file to priority 3, as indicated by this:

http://dev.antoinesolutions.com/rpmforge-repository


God knows if its the right priority, though. It tells me to yum check-update to make sure it's the correct one. But I can't make head or tails of the answer:


[root@server1 ~]# yum check-update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cat.pdx.edu
* extras: linux.mirrors.es.net
* rpmforge: mirror.cpsc.ucalgary.ca
* updates: mirror.san.fastserv.com

bind.x86_64 32:9.7.3-8.P3.el6_2.2 updates
bind-libs.x86_64 32:9.7.3-8.P3.el6_2.2 updates
bind-utils.x86_64 32:9.7.3-8.P3.el6_2.2 updates
e2fsprogs-devel.x86_64 1.41.12-11.el6 base
krb5-devel.x86_64 1.9-22.el6_2.1 updates
krb5-libs.x86_64 1.9-22.el6_2.1 updates
libffi.x86_64 3.0.9-1.el5.rf rpmforge
libssh2.x86_64 1.2.7-1.el5.rf rpmforge
openssl.x86_64 1.0.0-20.el6_2.4 updates
openssl-devel.x86_64 1.0.0-20.el6_2.4 updates
[root@server1 ~]#




And just as I thought, I'm still getting 'no package phpmyadmin available.

I've also added lines like 'logout' or './getinfo.sh' to the getinfo.sh file from before I knew what cat did, but I doubt that's the issue.
joao2
 
Posts: 38
Joined: 2012/01/05 00:12:06

Re: RPMForge downloaded on CentOS, but still no phpmyadmin

Postby TrevorH » 2012/05/01 14:39:38

Repository priorities can range from 1 (the highest and most preferred) to 99 (the lowest and least preferred). The specific values that you assign to each repo is entirely arbitrary but the idea is that you assign them such that one repo is preferred over another and you give the CentOS repos the most preferred priority so that packages that belong to Centos are not overwritten.

The reason you cannot find phpmyadmin is because this package is not in Rpmforge for el6. You need EPEL instead or as well.
User avatar
TrevorH
Forum Moderator
 
Posts: 9103
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Next

Return to CentOS 6 - Software Support

Who is online

Users browsing this forum: No registered users and 2 guests