LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 12-10-2017, 12:21 PM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
add package(rmp) to my local repository


SLES 12 SP1
How can I add package to my local repository server?

In my network I have local repository server.
I would like to add to its content one package - in this example: nmap-7.60-1.x86_64.rpm (so I do not need to manually copy and install it on every node)

I simply copied it to the dir where local repository server keeps all other packages. Now, if I try to install it I get this:

Code:
# zypper install nmap
Loading repository data...
Reading installed packages...
'nmap' not found in package names. Trying capabilities.
No provider of 'nmap' found.
Resolving package dependencies...

Nothing to do.
And this is repo list:
Code:
# zypper lr -d
# | Alias     | Name      | Enabled | GPG Check | Refresh | Priority | Type   | URI                                  | Service
--+-----------+-----------+---------+-----------+---------+----------+--------+--------------------------------------+--------
1 | localrepo | localrepo | Yes     | ( p) Yes  | No      |   99     | rpm-md | http://10.181.208.55:8080/localrepo/ |

Last edited by czezz; 12-10-2017 at 12:33 PM.
 
Old 12-11-2017, 12:46 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,899

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
yes, you need to regenerate the repo metadata structure. If I remember well the name of this tool is: createrepo.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum local install - package and all dependencies in local directory lppatmore Linux - Newbie 6 02-21-2015 02:53 AM
Setting Up A Local Repository For An Arm Package radiodee1 Linux - Embedded & Single-board computer 1 12-04-2011 10:20 AM
Package Kit Error-- "Cannot retrieve repository metadata (repomd.xml) for repository" mbvpixies78 Linux - Newbie 11 08-22-2008 07:20 PM
local repository abd_bela Solaris / OpenSolaris 1 01-12-2008 05:23 PM
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration