Solved

Root: man and RPM problem

Posted on 2000-03-17
9
330 Views
Last Modified: 2013-11-13
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.

0
Comment
Question by:crain
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
9 Comments
 
LVL 3

Expert Comment

by:jyu_88
ID: 2631562
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
 

Author Comment

by:crain
ID: 2631677
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
 
LVL 3

Expert Comment

by:jyu_88
ID: 2632652
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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:crain
ID: 2634233
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
 

Author Comment

by:crain
ID: 2634247
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
 

Author Comment

by:crain
ID: 2634252
Adjusted points from 50 to 75
0
 
LVL 3

Accepted Solution

by:
alien_life_form earned 75 total points
ID: 2637098
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
 
LVL 3

Expert Comment

by:alien_life_form
ID: 2637105
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
 

Author Comment

by:crain
ID: 2654963
alf

That did the trick with no fuss!  Thanks alot.

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

cheers,

crain
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question