LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-26-2012, 11:05 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,709

Rep: Reputation: 155Reputation: 155
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
 
Old 03-26-2012, 09:40 PM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
why not use the linux version of rar?
 
Old 03-26-2012, 11:27 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,980

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
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
 
Old 03-26-2012, 11:35 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Quote:
Originally Posted by John VV View Post
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.

Last edited by TobiSGD; 03-26-2012 at 11:41 PM.
 
Old 03-26-2012, 11:42 PM   #5
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,363

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by Xeratul View Post
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.
 
Old 03-27-2012, 12:34 AM   #6
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Rep: Reputation: 34
install, apt-get install p7zip & use p7zip -d <file> to uncompress
 
Old 03-27-2012, 01:31 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Quote:
Originally Posted by smilemukul View Post
install, apt-get install p7zip & use p7zip -d <file> to uncompress
The OP wants to compress, not to decompress.
 
Old 03-30-2012, 02:03 PM   #8
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,709

Original Poster
Rep: Reputation: 155Reputation: 155
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
 
Old 03-30-2012, 02:05 PM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,148

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
Quote:
Originally Posted by Xeratul View Post
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).

Last edited by dugan; 03-30-2012 at 02:11 PM.
 
Old 03-30-2012, 02:19 PM   #10
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,709

Original Poster
Rep: Reputation: 155Reputation: 155
Quote:
Originally Posted by dugan View Post
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?
 
Old 03-30-2012, 02:44 PM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Quote:
Originally Posted by Xeratul View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to deal with .rar files in linux now that rar is no longer part of linux Lleb_KCir Linux - Software 14 11-22-2008 08:01 AM
How to pack rar of a 160GB Hdd without volume dependencies and with 4.2GB max. size? frenchn00b Linux - General 4 08-31-2008 04:36 PM
How to setup firefox to automatically download a .rar instead of viewing a .rar... trist007 Linux - Newbie 5 07-18-2008 07:52 AM
question on how to rar multiple files into there own rar file steve51184 Linux - Software 13 10-24-2007 05:23 PM
extracting .rar with part01.rar? chime Linux - General 5 04-11-2006 07:59 PM


All times are GMT -5. The time now is 06:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration