LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Not able to install any pkgs (https://www.linuxquestions.org/questions/linux-software-2/not-able-to-install-any-pkgs-4175527778/)

arun natarajan 12-09-2014 06:32 AM

Not able to install any pkgs
 
Hi Everyone,

1. Am not able to install any pkgs using rpm and yum utility, even though repo is created. 2. Could you let me know , if there is any basic checks for repo. Getting same error for all the pkgs.

OS: RHEL 5

Error:

[root@localhost pub]# rpm -ivh samb*
warning: samba-3.0.33-3.14.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
perl(Convert::ASN1) is needed by samba-3.0.33-3.14.el5.x86_64
[root@localhost pub]# rpm -ivh http*
warning: httpd-2.2.3-31.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error dependencies:
apr-devel is needed by httpd-devel-2.2.3-31.el5.i386
apr-util-devel is needed by httpd-devel-2.2.3-31.el5.i386
apr-devel is needed by httpd-devel-2.2.3-31.el5.x86_64
apr-util-devel is needed by httpd-devel-2.2.3-31.el5.x86_64
[root@localhost pub]#

business_kid 12-09-2014 07:43 AM

Yeah, dependencies are tricky. I would run

Code:

rpm --rebuilddb
yum list samba*

a list of samba possibilities will hopefully be shown. Then run
Quote:

yum install some_package
It will do stuff and say "yeah, you need all this other stuff as well. Will I get it? Y/n?
Say yes, and you get the install.

arun natarajan 12-10-2014 05:19 AM

Hi,
I tried your steps, but dint get messages as expected.

[root@localhost pub]# rpm --rebuilddb
[root@localhost pub]# yum list samba*
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Error: No matching Packages to list

[root@localhost pub]# yum install some_package
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package some_package available.
Nothing to do

[root@localhost pub]# cd
[root@localhost ~]# yum list samba*
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Installed Packages
samba-common.x86_64 3.0.33-3.14.el5 installed
[root@localhost ~]#

business_kid 12-10-2014 09:20 AM

Code:

This system is not registered with RHN.
RHN support will be disabled.

samba-common.x86_64 3.0.33-3.14.el5 installed

So we have a bootleg RHEL 5. They don't like that, as RHEL is one you pay for if you want support.
Why not try paying up, or else install Centos, Scientific Linux, or Fedora which are RHEL clones. To be precise, centos and friends are rhel clones; Fedora is an rhel beta.

chrism01 12-11-2014 02:56 AM

Also, RHEL5 is getting old. v7 is just recently out; I'd go at least v6 if you want to wait for v7 to bed down.

arun natarajan 12-11-2014 12:05 PM

Hope I ll have same license issue even if am using v6 or v7. I don't want pay because am doing testing on my lap for my knowledge purpose only.

Could you suggest me some links to download Centos or Fedora OS

EDDY1 12-11-2014 03:00 PM

http://www.centos.org
https://getfedora.org

arun natarajan 12-13-2014 09:20 AM

Hi,

Am trying to fix this in RHEL itself. So plz help me.This is my repo file for local installation. Even after making ENABLED=0, am getting dependencies error. Lme know if any changes needs to done in this file.

[admin@localhost yum.repos.d]$ cat rhel-debuginfo.repo
[rhel-server]
name=RHEL5
baseurl=file:///var/ftp/pub/Server
enabled=0
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[admin@localhost yum.repos.d]$

DavidMcCann 12-13-2014 12:51 PM

As has been explained, you are not going to get stuff from Red Hat other than what's on the demo disk unless you are a subscriber. If you don't want to pay (and it's not cheap), use CentOS.

If you need a wide variety of software, CentOS (and Red Hat) needs to be supplemented with other repositories. All you get are basic things: browser, mail, office suite, etc. Thus I have Gnucash from EPEL, media codecs from RPMforge, etc. These have not caught up with CentOS 7 yet, so if CentOS alone is not enough, it may be better to go for version 6.

arun natarajan 12-18-2014 12:24 AM

I made the local repo setting , by that am able to install the pkgs now without dependency error. Ty Everyone :)


All times are GMT -5. The time now is 06:07 PM.