Solved

Root: man and RPM problem

Posted on 2000-03-17
9
299 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
  • 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Which is more secure: EAP or machine certificate for IKEv2 VPN? 1 84
how to rebuild XFS volume from LV 19 62
cannot rename datastore 3 45
awk variable in printf 1 22
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

813 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now