==============================================================================
unrpm-install v.32 (1-9-98) by Kent Robotti <robotti@erols.com>

This README and the lsm file are included with unrpm-install-32.ELF.tar.gz.
==============================================================================

This package consist of a few programs and scripts that allow you to install, 
convert, and unpack redhat.?.rpm, debian.deb & slackware ?.tgz packages.

You need the (M)idnight (C)ommander file manager to use this package.

If you have a linux distribution on cdrom, you probably have the 'mc'
file manager on the cdrom.

You can get the latest version of the midnight commander file manager
from here.

http://mc.blackdown.org/mc/download.html   <-Mc home page.)

ftp://ftp.nuclecu.unam.mx/linux/local      <-Mc ftp directory.)

mc-4.1.11.tar.gz   <-The latest stable version.)

ftp://ftp.nuclecu.unam.mx/linux/local/devel

mc-4.?.?.tar.gz    <-The latest development version.)

mc-4.?# configure --with-edit --with-our-slang   <-Configure & compile mc.)
      # make
      # make install
    
~# mc

Press [F2] in mc and chose from the menu the type of package you want 
to install...
 
=============================================================
Install current 'Redhat.i386.rpm' 'Debian.deb' package...
Install current Slackware '?.tgz' package... 
Convert current '?.i386.rpm' 'Debian.deb' to ?.tgz...
Convert & Install 'Redhat.i386.rpm Debian.deb' to ?.tgz...
Remove  Remove a package listed in /var/log/packages... 
Warn    Inform about tgz, rpm, deb package, don't install...
No      / Install, install from another directory...
deb     Extract '?.deb' package to subdirectory...
rpm     Extract '?.i386.rpm' '?.src.rpm' to subdirectory...

There are more options in the menu, they will require one
of these programs.

# uudeview       <-Uudeview is a more versatile uudecode.)
# unshar or sh
# unarj
# rar
# zip & unzip
# tar
# bzip2
# gzip
# compress
# lha
# groff
# info
=============================================================

You can install the unrpm-install package on any system e.g. Redhat, 
Debian, Slackware, it doesn't interfere with or replace your present 
package manager, it just supplements whatever package manager your 
system uses.

If you have a Redhat etc. system, continue to use their package 
manager for their packages.

package.i386.rpm   <-For example, the highlighted package in mc you want 
                     to install is this.)

Before you install a package you should chose Warn to get 
information on the package you want to install, or convert 
and install.

Warn    Inform about tgz, rpm, deb package, don't install...

If it says "WARNING: No '/usr' directory found", this could be
a problem, it could mean the package should not be installed 
from /, look at how the package is laid out in /var/log/warn/
package-name.

If it says "WARNING: Found '/etc' directory", this could be
a problem also, it could mean the package will overwrite
something important in the /etc directory. 

Usally some of the files in the /etc directory are used to boot 
your system, you want to be sure none of these important files 
will be overwritten when installing a package.

If the package in not packed relative to /, you can chose the 'No /'
option to install it, then when asked what directory to install the 
package from, put the directory in the box e.g. /usr/X11R6 /usr /etc.

It can be any '?.i386.rpm' '?.deb' '?.tgz' '?.tar.gz' package,
for the 'No /' option.

Then you have these options if the package is not a 'No /' package.
		      
Install current Slackware '?.tgz' package...
Install current 'Redhat.i386.rpm' 'Debian.deb' package...
Convert & Install 'Redhat.i386.rpm Debian.deb' to ?.tgz...

When i say redhat.i386.rpm i mean 'alpha.rpm' and 'sparc.rpm' also.

You could also convert the redhat.i386.rpm or debian.deb package to 
'?.tgz', then install it with the 'Install current Slackware ?.tgz' 
option... 

What i mean by a "?.tgz" package is a package put together by slackware,
there are many packages with a "?.tar.gz" "?.tgz" extension that are put 
together by others, with such a package you have to unpack it and follow 
the instructons it provides for installing it.

Install current '?.tgz'    <-This option is for a slackware '?.tgz' package,
                             or one that was converted to '?.tgz'.

You can see what will be installed and overwritten, without installing 
a ?.tgz, ?.rpm, & ?.deb package...

foo.boo.tgz    <-For example, i want to see what would be installed and
                 overwritten if i installed this package...
		  
Chose 'Warn' from the menu to see what would be installed and overwritten, 
a copy of the output with the same name as the package will be put in the 
/var/log/warn directory...

/var/log/warn/foo.boo    <-For example.)

Debian & redhat tend to be little more library dependent than slackware, 
this just means that in addition to installing a particular package, you 
may also have to install libraries that the package requires to run...

Because of the above you have to procede with a little more caution with
debian & redhat packages...

If you install a important package that replaces a important program
on your system e.g. /bin/bash, you should be sure that the replacement
/bin/bash does'nt require a library to run that you don't already have 
installed.

In other words, "beware of putting the cart before the horse", find out
first what the package is linked with before you install it, you can 
unpack any package first to inspect it before installing it.

~# ldd bash
lib.so.mething.?

If it's linked to a lib.something.? you don't have on your system,
then install this lib.something.? first, because the program won't 
run without it.

You can convert a redhat.i386.rpm or debian.deb package to a 
slackware ?.tgz package...

Chose Convert from the menu in mc [F2] then press enter, and the current =
highlighted redhat.i386.rpm or debian.deb package will be converted...

foo.boo.i386.rpm   <-For example, you have this.)
foo.boo.i386.tgz   <-Now you also have this.)

You can then install it as a slackware ?.tgz package...

You can remove slackware, debian, & redhat packages that you installed...

For example, if you installed 3 packages called slackware.tgz, redhat.rpm,
& debian.deb.

~# mc

In the directory /var/log/packages press [F2] and chose Remove, then the 
current = highlighted package will be removed, in this example slackware,
redhat, & debian.

All slackware, debian, & redhat packages that you install, will be 
listed in the /var/log/packages directory.

All removed packages will be listed in the /var/log/packages_removed
directory.

If you just want to unpack a redhat.rpm or debian.deb package, chose
one of these options below.

deb     Extract '?.deb' package to subdirectory...
rpm     Extract '?.i386.rpm' '?.src.rpm' to subdirectory...

The above stuff is based on commands in the /usr/local/lib/mc/mc.menu file.

You need the programs, 'grep' 'tee' 'basename' 'tar' 'gzip' on your system,
for these scripts to have any effect.

Unrpm-install includes a version of 'cpio 4.2' that will be installed on your 
system, the only difference between this 'cpio 4.2' and the standard 'cpio' 
is, it will give a permission of 755 not 700 to the directories of the 
extracted rpm package.

==============================================================================
How to install...
==============================================================================

~# tar xzvf unrpm-install-32.ELF.tgz    <-Unpack...)
unrpm-install-32#./INSTALL              <-Install it on your system...)
	      
You only need to run the INSTALL script once...

INSTALL will expect your mc lib directory to be either
/usr/local/lib/mc or /usr/lib/mc.

After you run INSTALL you can add these 'View=' lines below to 
the /usr/local/lib/mc/mc.ext file.

~# vi /usr/local/lib/mc/mc.ext

# rpm
regex/\.rpm$                              
	Open=%cd rpm:%d/%p/                
        View=%view{ascii} rpm2cpio '%f' | cpio -tvf   <-Add this line to
	Install this RPM=rpm -i '%f'                    the mc.ext file in
	Upgrade this RPM=rpm -U '%f'                    in the rpm section.

# deb
regex/\.deb$                              
	Open=%cd deb:%d/%p/                
        View=%view{ascii} dpkg-deb -c '%f'            <-Add this line if
                                                        not there.
							 
~# mc
foo.boo.deb
Press [F3] to view the contents of a debian.deb package.

foo.boo.?.rpm
Press [F3] to view the contents of a redhat.?.rpm package.
		        
The man pages will be put in /usr/man/man1 & 8 or /usr/local/man/man1 & 8, 
if these directories exist.

These are just man pages for the scripts and programs used by this 
unrpm-install package.

~# more foo.man      <-To read the formatted version of the man pages.)
 # less foo.man
 
There's no man page for this unrpm-install package, just this readme.

After you do INSTALL you only need to keep 'mc.menu' and this README.

(1-9-98)
==============================================================================

If you have a previous version of unrpm-install 14 or later, you don't 
have to install the whole package again, you just need to update 'mc.menu'.

You can get 'mc.menu' from here.

ftp://ftp.tux.org/pub/people/kent-robotti "mc.menu.tgz"

Copy 'mc.menu' to the mc directory, either /usr/local/lib/mc 
or /usr/lib/mc.

# cp mc.menu /usr/local/lib/mc
# Read this README.		
============================================================================== 