Root: man and RPM problem

I have been unable to get RPM files to install as root.  I can upgrade but not install.   Errors like

file: package.tar.gz action: unkown

pop up when I use

rpm -ivv package.rpm.

I started having this problem with the netatalk rpm, but the ksciplot and C++2LaTeX packages give me the same error that the action for each file is unknown.

Also, as root, any man topic I can think of is unavailable.  Even simple ones like ls and cd.   Could these issues be related via a corrupted .bashrc file or its equivalent?  I rarely use bash. I am running RedHat 6.0 and my user tcsh account works fine.

crainAsked:
Who is Participating?
 
alien_life_formConnect With a Mentor Commented:
Greetings.

I would assume that your problem is due to that being a source rpm. You can create a standard rpm package out of that by using the sequence:

rpm --install foo.src.rpm
cd /usr/src/redhat/SPEC
rpm -ba foo.spec

You'll have to have all the compiler, make etc. stuff that's customary for compilation. (I do not think that, weird as it is, -i and --install behave similarly for source RPMs).

Cheers,
   alf
0
 
jyu_88Commented:
MANPATH needs to be set properly to access man pages.
1) setenv MANPATH /usr/man:/usr/local/man:.
2) or the 'manual' way: you may find where the interested man pages are at by
'locate ls.1',
then do
groff -Tascii -man </path/to/ls.1 | more

interesting RPM problem:-(
Without further ado to diagnose, if it were me, I'd just try to upgrade RPM package itself, rebuild rpm database, then try again.

to check out where this 'tar.gz' file comes from:
rpm -qlp problematic.version.rpm

'rpm -ivv' is just a typo, or something I dono?

0
 
crainAuthor Commented:
the 'rpm -ivv' installs with 'vv' for very verbose tracking of the installation process.  Thats where I get  the

file:  file.in.rpm action: unknown

information.  

0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
jyu_88Commented:
What is the error? The error is different from your first post? If you don't mind, please tell which RPM and where to download, I'd be very interested to try it out. And, what's RPM's own version, and stuff?
0
 
crainAuthor Commented:
Sorry.  Below is some output that should clarify what I get when I try to install C++2LaTeX-1.1-2.src.rpm (although I get the same kind of action: unknown when I have tried to install ksciplot or netatalk).  If this gets involved I can bump up the points for this question.

[root]# rpm --version
RPM version 3.0.2  
[root]# ls
C++2LaTeX-1.1-2.src.rpm  netatalk-1.4b2+asun2.1.0-5.src.rpm  voodoo
SNNS-4.1-2.i386.rpm      netatalk-1.4b2+asun2.1.3-6.src.rpm
cdwrite-2.0-1.src.rpm    rpm-3.0.2-6.0.i386.rpm
[root]# rpm -ivv C++2LaTeX-1.1-2.src.rpm
D: counting packages to install
D: found 1 packages
D: looking for packages to download
D: retrieved 0 packages
D: New Header signature
D: Signature size: 236
D: Signature pad : 4
D: sigsize         : 240
D: Header + Archive: 48836
D: expected size   : 48836
D: found 1 source and 0 binary packages
D: New Header signature
D: Signature size: 236
D: Signature pad : 4
D: sigsize         : 240
D: Header + Archive: 48836
D: expected size   : 48836
D: installing a source package
D: sources in: //usr/src/redhat/SOURCES
D: spec file in: //usr/src/redhat/SPECS
D:    file: C++2LaTeX-1.1.tar.gz action: unknown
D:    file: C++2LaTeX-1.1-2.spec action: unknown
C++2LaTeX-1.1-2                        
[root]# rpm -qlp C++2LaTeX-1.1-2.src.rpm
C++2LaTeX-1.1.tar.gz
C++2LaTeX-1.1-2.spec
0
 
crainAuthor Commented:
Oops, I got the C++2LaTeX RPM from ftp://contrib.redhat.com.  As for the output from 'rpm -ivv' once I run that nothing has actually been installed.  That is the error.  Its like rpm can't figure out what to do with any of the files in the package.rpm file although is recognizes all of the pieces contained in the rpm.

Also, I tried setenv as root and never managed to get my MANPATH to change:

[root]# setenv MANPATH /usr/man:usr/local:man:
bach: setenv: command not found.
[root]# echo $MANPATH
/usr/local/qt/man:/usr/local/qt/man:/usr/local/qt/man:

Is setenv not available under bash? Curiouser and curiouser....

0
 
crainAuthor Commented:
Adjusted points from 50 to 75
0
 
alien_life_formCommented:
A bad, embarassing, case of keyboard faster than brain. I am just *NOW* reading the output log you posted above. I'd give rpm --install a try, regardless...

Cheers,
   alf
0
 
crainAuthor Commented:
alf

That did the trick with no fuss!  Thanks alot.

Weird though that -i and --install are different in rpm.

cheers,

crain
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.