Sponsored Content
Full Discussion: Yum install command -errors
Top Forums UNIX for Advanced & Expert Users Yum install command -errors Post 303028856 by bakunin on Wednesday 16th of January 2019 07:59:29 AM
Old 01-16-2019
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 09:06 AM..
These 2 Users Gave Thanks to bakunin For This Post:
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. Linux

install openoffice writer from yum

Is there a way to install openoffice writer from yum? Can I add some repository then do that? (5 Replies)
Discussion started by: cokedude
5 Replies

6. 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

7. 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

8. 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

9. 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

10. 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
All times are GMT -4. The time now is 11:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy