Need some direction with using p7zip as a command line tool

Status
Not open for further replies.

sapwood

Dabbler
Joined
May 23, 2013
Messages
17
There's a reason I'm posting in this section, since I have no clue how to get to the point where i can use p7zip to create archives. I've basically tried using pkgadd or some other command to find a package to install, but I can't find any package to install for p7zip anyways. So I have the .tar.bz2 files for it, but when I get to the point where I would do the make file, it says g++ isn't installed, and I can't find any instructions on installing it that would be relevant.

Any tips on where I should go with this? I feel like I've hit a brick wall that can only be surpassed on my own by reading for a week about all of this...
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
There really isn't room to install software on the FreeNAS installation. The embedded installation only has like 10MB free and FreeNAS needs all of that free space to function properly.

You could try installing in the jail. If you do that you can probably find some other people htat have done installs and see how they did it. Sadly, I can't help you with your problem because I do my installation from 'ports' mostly. Ports works in the jail when setup, but NOT on the FreeNAS USB.
 

sapwood

Dabbler
Joined
May 23, 2013
Messages
17
that makes sense for including it with startup and installation, but I was just hoping to use it while the system is up... so I'm not sure if that would change the first point you made?

For jails, I found this link which seemed a bit over my head at first, but is that what I'd need to do, and is it a good place to start?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
No, you are looking for how to install p7zip from a CLI. If you install it then it will appear to take up some of that 10MB until you reboot.

What you need to do is find a guide that gives instructions for installing p7zip for freebsd. The jail is just a stripped down version of FreeBSD. That's kind of outside the scope of the forum. Googling should find someone that shows how to install p7zip. I'll warn you though that if you aren't familiar with the CLI you will probably be in over your head.
 

sapwood

Dabbler
Joined
May 23, 2013
Messages
17
eh, as long as I have instructions the CLI isn't that bad, but I've been looking for anything about installing it on FreeBSD and everything is a bit off. Most of the commands the CLI just returns "command not found." Figuring out which package manager was even available to use for commands was the hardest part yet since I had no clue which is which.

I guess I can be moved somewhere else if this is a bit outside, but after you talked about the jail part I found this PBI... is that actually all I need? I think I can follow the instructions if that is actually what i'm looking for.
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,402
Is there a reason your not using xz?
 

sapwood

Dabbler
Joined
May 23, 2013
Messages
17
it looks like it doesn't support .7z which is what I ended up using for my compression. These are all full file backups from old hard drives... if something would actually be better from XZ maybe I could migrate a bit, or change, but when I chose 7z I was only comparing and contrasting compression types from the program 7z. Freeware does that :P

The strange part is I went back to setup a jail and I didn't even have that function, though I do have a plugins area for the PBI that asks me about my jail settings and target. I think I may have done something different during the install, but its basically killed my process a little bit at this point. For now I'm just using another computer booted up in Parted Magic with the storage device mounted, and then I installed p7zip. I'm going through one switch on my desk and I'm going to let it run over the weekend, so it should be good for now. Though if someone knows why I don't have the jail area I would love to know why (though I think it was something with my initial configuration?)
 

survive

Behold the Wumpus
Moderator
Joined
May 28, 2011
Messages
875
Hi sapwood,

Here's what I do for those little "handy to have" programs like bonnie++ & such. I have a FreeBSD vm and I install the package (actually port) there then I find the program file and copy it over to a directory on my pool (/mnt/zpool0/opt/bin in my case). It might be that all you have to do is grab the p7zip package, extract it somewhere & do the same thing.

-Will
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,402
These are all full file backups from old hard drives... if something would actually be better from XZ maybe I could migrate a bit, or change, but when I chose 7z I was only comparing and contrasting compression types from the program 7z. Freeware does that :P
Ah, OK. In addition to survive's suggestion, is there a reason the file server needs to uncompress the backups?
 

survive

Behold the Wumpus
Moderator
Joined
May 28, 2011
Messages
875
Hi paleoN,

My guess would be that they want to extract these backup archives locally so they can use the full speed of their disks.

-Will
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,402
My guess would be that they want to extract these backup archives locally so they can use the full speed of their disks.
Depending on the use case I would suggest the OP just use a compressed dataset, but I suspect that won't give them the amount of compression they are looking for.
 

survive

Behold the Wumpus
Moderator
Joined
May 28, 2011
Messages
875
Hi paleoN,

Based on my reading of the question\problem the backups are already compressed & they just want to extract them without bouncing them through a network share.

-Will
 
Status
Not open for further replies.
Top