Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-31-2006, 02:06 PM   #1
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 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
I would like to add a line:
This is what I have installed, but not reqognised by my applications prereq check.
Old 05-31-2006, 05:54 PM   #2
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
if you run
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.
Old 06-01-2006, 08:58 AM   #3
LQ Newbie
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Close but not exact

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

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

My problem is that XFree86 from 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
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)


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:57 PM.

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