Submitted by thanecrossley.com on Fri, 09/24/2010 - 14:00
Hi, I'm wanting to be able to zip and unzip files that are pkzip compatible. I've tried working with tar, bzip2, and gzip, but I've had no luck. I suspect that tar might allow me to do what I want, but I haven't been successful so far.
So I thought I'd install unzip myself. I tried using the following command:
yum install unzip
but that returned the following message:
Loaded plugins: fastestmirror Config Error: Error accessing file for config file://///etc/yum.repos.d/virtualmin.repo
Thanks for your help.
- john.
Status:
Active
Comments
Submitted by andreychek on Fri, 09/24/2010 - 14:30 Comment #1
The "unzip" command should do what you're after.
That error you're getting is odd though... what are the contents of your "/etc/yum.repos.d/virtualmin.repo" file? Perhaps something in there is causing trouble.
That error is happening because yum is being run by a non-root user. That won't work (you can't install software without root privileges).
It's sort of bug-like that our repo config file causes that less enlightening error...it contains license information, so it can't be world-readable as yum seems to expect. So, the error you get is one that doesn't really make sense, if you don't know this little tidbit of information.
But, you're not going to be able to install unzip as a non-root user, no matter whether the virtualmin.repo file is readable or not. So, run it as root, and all will be well. ;-)
Submitted by thanecrossley.com on Fri, 09/24/2010 - 15:31 Comment #3
Yep, sudo worked like a charm... considering that I was wanting to install software, I should have guessed that I'd need root access for that.
Thanks. :)