LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-31-2006, 02:06 PM   #1
ringvix
LQ Newbie
 
Registered: May 2006
Posts: 4

Rep: Reputation: 0
How to register a program in rpm database


I have downloaded XFree86 and installed it, all works fine.
But my application have a prereq that says "XFree86-Xvfb" have to be installed. The installation from XFree86.org is not a .rpm package (XFree86 is working well, but prereq just check rpm)
How do I register a new package in my rpm database???
------
From my linux-box:
linux:~ # rpm -qa | grep XFree
XFree86-server-4.3.99.902-43.22
XFree86-4.3.99.902-43.22
XFree86-fonts-75dpi-4.3.99.902-43.22
XFree86-server-glx-4.3.99.902-43.22
XFree86-Mesa-4.3.99.902-43.22
XFree86-man-4.3.99.902-43.22
XFree86-Xvnc-4.3.99.902-43.22
XFree86-fonts-scalable-4.3.99.902-43.22
XFree86-libs-4.3.99.902-43.22
XFree86-devel-4.3.99.902-43.22
----
I would like to add a line:
XFree86-Xvfb-4.3.99.902-43.22
---
This is what I have installed, but not reqognised by my applications prereq check.
 
Old 05-31-2006, 05:54 PM   #2
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
Hello
if you run
Quote:
rpm -U --justdb PACKAGE_FILE
The package is registered in the rpm database without being really installed in the file system (see 'man rpm').
Maybe this option will do what you need.
Regards.
 
Old 06-01-2006, 08:58 AM   #3
ringvix
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Close but not exact

Try #1 -------------
> rpm -U --justdb XFree86-Xvfb-4.3.99.902-43.22
error: cannot open file XFree86-Xvfb-4.3.99.902-43.22: No such file or directory

Try #2 -------------
> touch XFree86-Xvfb-4.3.99.902-43.22.rpm
> rpm -U --justdb XFree86-Xvfb-4.3.99.902-43.22.rpm
error: XFree86-Xvfb-4.3.99.902-43.22.rpm does not appear to be a RPM package
-------------------

My problem is that XFree86 from xfree86.org have there own installer (it works perfect). My other application prereq checks only with something like "rpm -qa | grep XFree86-Xvfb*".

So I need to insert the name in the rpm-database without having the actual rpm-package.
 
Old 06-01-2006, 02:45 PM   #4
ringvix
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
I downloaded a package that was wrong version...
and then wrote this command :-)
rpm -U --justdb --force --oldpackage --nodeps XFree86-Xvfb-4.3.0-2.i386.rpm
So no I have the right name in rpm-database :-)
(probably some other upcomming problems with this, but its only a sandbox-machine)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cannot register an rpm file in mandriva theoldun Linux - Software 0 11-14-2005 02:25 AM
sms program and database in linux web program in windows.. does not see each other.. keikun_naruchan Programming 0 07-06-2005 01:40 AM
How to add compiled program to rpm database psteege Yoper 3 01-10-2005 07:23 AM
How to register a program for command line?? wepakis Linux - Software 8 11-13-2004 02:07 AM
How to register ant with rpm database? janisj Linux - Software 5 12-07-2003 05:05 AM


All times are GMT -5. The time now is 09:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration