LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 10:05 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Rep: Reputation: 255Reputation: 255Reputation: 255
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, 08:40 PM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

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

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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, 10:35 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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 10:41 PM.
 
Old 03-26-2012, 10:42 PM   #5
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

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-26-2012, 11:34 PM   #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, 12:31 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 01:03 PM   #8
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
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, 01:05 PM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,249

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
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 01:11 PM.
 
Old 03-30-2012, 01:19 PM   #10
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
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, 01:44 PM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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



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 07: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 03:36 PM
How to setup firefox to automatically download a .rar instead of viewing a .rar... trist007 Linux - Newbie 5 07-18-2008 06:52 AM
question on how to rar multiple files into there own rar file steve51184 Linux - Software 13 10-24-2007 04:23 PM
extracting .rar with part01.rar? chime Linux - General 5 04-11-2006 06:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:39 AM.

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
Open Source Consulting | Domain Registration