Yum install command -errors


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
# 15  
Quote:
Originally Posted by DOkuwa
hello
When i follow neo 's instruction it does not give me the option to copy the BB code (it says BB code is disabled)
What am i doing wrong
Why don't you just copy and paste the error message within CODE-tags and post it directly? Is it that lengthy? Because, if it is not, simply put the following in your post:

[code]<your error message here....
.....
....
...and it ends here[/code]

Which will look like this:

Code:
<your error message here....
.....
....
...and it ends here


I hope this helps.

bakunin
These 2 Users Gave Thanks to bakunin For This Post:
# 16  
ok i am going to type this manually
Code:
yum install elfutils-libelf-0.172-2.e17.i686.rpm
This system is not registered to RedHat subscription manager 
There are no enabled repos. **Run "yum repolist all" to see the repos you have.

You can enable repos with yum-config-manager --enable

This is red hat 7.2 on a Virtual machine I dont want to subscribe to Red Hat as this is a test box
# 17  
If I were you I would follow the instructions in the message above.

In particular:

Code:
yum repolist all

Code:
yum-config-manager --enable

# 18  
Quote:
Originally Posted by DOkuwa
ok i am going to type this manually
Code:
yum install elfutils-libelf-0.172-2.e17.i686.rpm
This system is not registered to RedHat subscription manager 
There are no enabled repos. **Run "yum repolist all" to see the repos you have.

You can enable repos with yum-config-manager --enable

This is red hat 7.2 on a Virtual machine I dont want to subscribe to Red Hat as this is a test box
I think the error messsage is pretty clear. A "repository" is a number of rpm-files with a small file containing a "table of contents" anyway, so it is not particularily important which repo you use as source. If you do not plan to keep the system for a longer period of time you might as well (this i assume because of the "test"-status) use the CentOS- or Fedora- repository and install the package from there or (perhaps even easier) download the rpm-files you want to install into a local directory and install from there. This has the advantage of you automaticaclly getting a list of additionally installed packages for free which you might need once you try to create a production-level system modeled after this test-system.

I hope this helps.

bakunin
# 19  
Thanks for your reply
i download all the packages from CentOS Repositories - pkgs.org
i have also tried the yum-config-manager --enable <name of repos> name of repos =elfutils-libelf-0.172-2.e17.i686.rpm
it does nothing no error message
What i am doing wrong
# 20  
Quote:
Originally Posted by DOkuwa
i have also tried the yum-config-manager --enable <name of repos> name of repos =elfutils-libelf-0.172-2.e17.i686.rpm
This is not the name of the repository, it is the name of the package. A "repository" is a place where several (many) packages are collected to install from there. If you do a yum repolist you will see a list of repositories. Look in the directory /etc/yum.repos.d and you will see some files named exactly like the list you got but with the ending "repo". These files are the definition files of the respective repo. Have a look at existing files to see the structure. You can even create a local repository by downloading rpm-files, putting them into a directory and creating a repository from that.

First you need to tell yum that you want to use a new repository: a repo-file for a local repository (/etc/yum.repo.d/local.repo) could look as simple as this:

Code:
name=Local Repository
baseurl=file:///your/directory/with/rpms
enabled=1
gpgcheck=0

Then put your rpms in /your/directory/with/rpms and run createrepo /your/directory/with/rpms.This is it. You may need to install the rpm-package with the createrepo utility first if you don't have it on your system. Now you can install the rpms from this directory using yum install ..... Notice that when you add, remove or change rpms from this directory you need to run createrepo again to update the repository information.

I hope this helps.

bakunin

Last edited by bakunin; 01-16-2019 at 10:06 AM..
These 2 Users Gave Thanks to bakunin For This Post:
# 21  
i did create a file in /etc/yum.repo.d called local.repo and had the following code
Code:
name=Local Repository
baseurl=file:///tmp/rpm
enabled=1
gpgcheck=0

This directory /tmp/rpm contains all the packages downloaded but after this exercise i tried to run createrepo and /tmp/rpm with root and there is an error "command not available "
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #929
Difficulty: Medium
Vernor Vinge's novel A Deepness in the Sky describes a spacefaring trading civilization thousands of years in the future that still uses the Unix epoch.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Installation of virt-manager while yum update and yum install rhvm does not work

I have downloaded RHEV-H 4.2 Red Hat Virtualization - Red Hat Customer Portal (RHVirtualization 4.2 Host and Manager iso). I uploaded the image and installed on an HP G9 server baremetal. I found I dont have a WAN/net connectivity later on HPG9 server. How can I still install virt-manager on... (1 Reply)
Discussion started by: Paras Pandey
1 Replies

2. Post Here to Contact Site Administrators and Moderators

Yum install migrationtools

Dear All, Dear Friends, AM installing openldap , during that need to install migrationtools through yum install . But when run the command " yum install migrationtools " its throughin below errors. There is not folder migrationtool is creating as you can see below. Even i tried with... (0 Replies)
Discussion started by: Chand
0 Replies

3. UNIX for Dummies Questions & Answers

How to install CPAN without using yum on Linux?

Hi all, I am on Linux box where CPAN is not working for downloading any perl modules. When I try "perl -MCPAN -e shell" as root as well as a user, I get following error: Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl... (2 Replies)
Discussion started by: pat_pramod
2 Replies

4. Solaris

Yum, rpm, apt-get install command not found in Solaris

I am using solaris 10 yum command not found apt-get install command not found rpm command not found how to use yum and apt-get command in solaris how to install dhcp, openldap-servers packages in solaris (4 Replies)
Discussion started by: ainstin
4 Replies

5. Red Hat

Yum cannot install from repository

Hi guys, thanks for you help on this issue. I built a dvd repository on my server and when I try to install a package from it, I get this error ftp://10.0.0.12/pub/Packages/httpd-2.2.15-26.el6.x86_64.rpm: PYCURL ERROR 9 - "Server denied you to change to the given directory" I will... (2 Replies)
Discussion started by: cjashu
2 Replies

6. Red Hat

'yum install createrepo' issue

Hi, Here is the issue: # yum install createrepo Warning, could not load sqlite, falling back to pickle Setting up Install Process Setting up repositories file://var/yum_rpm/repodata/repomd.xml: OSError: No such file or directory: '/yum_rpm/repodata/repomd.xml' Trying other mirror. Cannot... (5 Replies)
Discussion started by: aixlover
5 Replies

7. UNIX for Dummies Questions & Answers

Trying to install using YUM

Hi, working on CentOS 5.7 64 bit. I need to install syslog-ng. First I downloaded syslog-ng RPM. When I install I get many dependencies error messages. rpm -ivh syslog-ng-3.3.3-1.mga2.x86_64.rpm warning: syslog-ng-3.3.3-1.mga2.x86_64.rpm: Header V3 RSA/SHA1 signature: NOKEY, key ID... (2 Replies)
Discussion started by: samnyc
2 Replies

8. Red Hat

how can i get the install path from yum?

Hello all i install several application using yum in CentOS now i like to see the installed application path's where each component yum downloaded got installed how can i do that ? (1 Reply)
Discussion started by: umen
1 Replies

9. Linux

[help] can not install KDE by yum

Hi, I installed Fedora 7 without GNOME and KDE from DVD. Using console is not convenient, so I would like to install KDE. I do some step like this: ---------------------------- 1. I use local repository from DVD: /mnt/dvd 2. from command windown: # yum groupinstall KDE ..................... (1 Reply)
Discussion started by: kholostoi
1 Replies

10. Linux

install yum

I have a centos 4.x box and for some reason yum is not installed on it. Is there a howto on how to do this? thanks! (3 Replies)
Discussion started by: mcraul
3 Replies

Featured Tech Videos