Tarball Extraction? How is it done QNX

I am new to QNX6 but not to Linux… It seems to me that allot of the same
commands and software are used on both systems and with that in mind, I
would have thought that archive extraction would have been done in the same
way. Unfortunately that doesn’t seem to be the case? Does some one know how
I can extract files from tarballs in QNX6?

Archives such as “.tar.gz” “.tar” “.tar.bz2” “bz2” etc…

Allot of the software I have found around on the web comes in these archives
and I am interested in installing them. But unless they can be extracted
from the tarball, I don’t see how that can be done? Does QNX6 deal with
these types of files differently then linux does?

Also I’m interested in adding user to me QNX6 system and haven’t been able
to find a way of doing so. Is there a Add/Remove User Manager for QNX6? If
not, what file do I have to edit to add new user to my system?

One more question! Does QNX6 compile source files in much of the same way as
Linux does? I am interested in compiling some things for use on my system,
but can’t seem to get started on this because of my inability to extract
the file from these archives…

Any help on any of these questions would be greatly appreciated, thanx!

~Patrick

“Patrick Yavitz” <pyavitz@comcast.net> wrote in message
news:btctg6$p7d$1@inn.qnx.com

I am new to QNX6 but not to Linux… It seems to me that allot of the same
commands and software are used on both systems and with that in mind, I
would have thought that archive extraction would have been done in the
same
way. Unfortunately that doesn’t seem to be the case? Does some one know
how
I can extract files from tarballs in QNX6?

Archives such as “.tar.gz” “.tar” “.tar.bz2” “bz2” etc…

tar.gz are the same as .tgz

In a nut shell the extension specifiy both the program use to package the
source file together ( in all cases above program pax or tar) and if
applicable program use to compress the package.

gz correspond to gzip and bz2 correspond to bzip2. Then to extract files
you would run:

gunzip <file.tar.gz | pax -rv

This could uncompress the compress tar file and send it via the pipe to the
pax program. You could replace pax with tar but I’m not familliar with the
argument.

As far as I know it’s the same for Linux.

Allot of the software I have found around on the web comes in these
archives
and I am interested in installing them. But unless they can be extracted
from the tarball, I don’t see how that can be done? Does QNX6 deal with
these types of files differently then linux does?

Also I’m interested in adding user to me QNX6 system and haven’t been able
to find a way of doing so. Is there a Add/Remove User Manager for QNX6? If
not, what file do I have to edit to add new user to my system?

You must use the program passwd via a shell to add new user (check
documentation for detail)

One more question! Does QNX6 compile source files in much of the same way
as
Linux does? I am interested in compiling some things for use on my system,
but can’t seem to get started on this because of my inability to extract
the file from these archives…

Yes it does. It used the sample compiler as Linux (currently gcc 2.7.2).

Any help on any of these questions would be greatly appreciated, thanx!

~Patrick

Mario Charest wrote:

gunzip <file.tar.gz | pax -rv

Alternative commandlines that also work:

…tgz or .tar.gz:
gunzip -c file.tgz | tar -xvf-
tar -zxvf file.tgz

…tar.bz2:
bunzip2 -c file.tar.bz2 | tar -xvf-

Note: the current version of tar shipped with QNX6 does not support
bunzip2 directly (the -j option in Linux, I think)

If you want to see a quick note on what options are available for a
command you can use the “use” command.
ex.

use tar

If you want more details, you can read the help documentation either
in the helpviewer (in Photon) or on the www.qnx.com website


James MacMillan

James MacMillan wrote:

If you want to see a quick note on what options are available for a
command you can use the “use” command.
ex.

use tar

I forgot to mention. QNX6 does include the “less” and “more” commands,
so if the output of the “use” commmand is scrolling off the screen you
can redo the command with its output piped to “more” or “less”.
ex.

use tar | less

or

use tar | more

Alternatively, if you are in Photon, you can scroll up and down a little
if you are within a pterm by holding down - and using the up
and down arrow keys. If it doesn’t scroll back far enough (it probably
won’t by default), you can increase the buffer by right-clicking the
pterm window and choosing “properties”. Increase the number of lines
buffered and click done.


James MacMillan