LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Pack as RAR with p7zip-rar ? (https://www.linuxquestions.org/questions/linux-newbie-8/pack-as-rar-with-p7zip-rar-936514/)

Xeratul 03-26-2012 10:05 AM

Pack as RAR with p7zip-rar ?
 
Hi, Would you eventually know the magic command that can create a rar file from source of a directory with preserving the sub-directories (-R) ?

thank you

whansard 03-26-2012 08:40 PM

why not use the linux version of rar?

John VV 03-26-2012 10:27 PM

you will have to find the linux version on your own
it is a NOT free program

so buy it or ....

we could be sued so....

welcome the the NEW "Iron Curtain" of Copyrights the US of A

TobiSGD 03-26-2012 10:35 PM

Quote:

Originally Posted by John VV (Post 4637192)
you will have to find the linux version on your own
it is a NOT free program

so buy it or ....

we could be sued so....

welcome the the NEW "Iron Curtain" of Copyrights the US of A

No need to buy anything (at least not for the first 40 days), if you have the non-free repos enabled it is nothing more than
Code:

apt-get install rar
That program is shareware, so it is not illegal to show how to get it and how to install it.

Edit: Just searched a little bit for info on that: Simple answer, you can't use p7zip-rar for compressing files, it is only able to extract rar-files, but not to create/compress them. So using rar or one of the more Linux native algorithms, like lzma, xz, bzip2 or gzip would be an option.

divyashree 03-26-2012 10:42 PM

Quote:

Originally Posted by Xeratul (Post 4636635)
Hi, Would you eventually know the magic command that can create a rar file from source of a directory with preserving the sub-directories (-R) ?

thank you

You can use unrar.

smilemukul 03-26-2012 11:34 PM

install, apt-get install p7zip & use p7zip -d <file> to uncompress

TobiSGD 03-27-2012 12:31 AM

Quote:

Originally Posted by smilemukul (Post 4637232)
install, apt-get install p7zip & use p7zip -d <file> to uncompress

The OP wants to compress, not to decompress.

Xeratul 03-30-2012 01:03 PM

5 - 6 posts. QUestion is indeed how to pack a rar with 7zip?

I have tried so many things wiht it and google and still it results in a 7zip...

check ith wih liesss... not an rar archive type .

p7zip-rar does not work thus

dugan 03-30-2012 01:05 PM

Quote:

Originally Posted by Xeratul (Post 4636635)
Hi, Would you eventually know the magic command that can create a rar file from source of a directory with preserving the sub-directories (-R) ?

thank you

You can't. You're welcome.

(If you're wondering why, it's because the author of RAR won't allow the authors of other software to do so).

Xeratul 03-30-2012 01:19 PM

Quote:

Originally Posted by dugan (Post 4640854)
You can't. You're welcome.

(If you're wondering why, it's because the author of RAR won't allow the authors of other software to do so).


well, ... why not possible because linux has rar-free sothg if I remind well, no?

TobiSGD 03-30-2012 01:44 PM

Quote:

Originally Posted by Xeratul (Post 4640859)
well, ... why not possible because linux has rar-free sothg if I remind well, no?

Of course you can use rar or rar-unfree to create RAR-archives. But you can't use p7zip-rar for that, just because the devlopers of p7zip didn't implement that in their program. That is why dugan correctly stated that it is impossible, answering your question how to do that with p7zip-rar.


All times are GMT -5. The time now is 08:22 PM.