You are not logged in.

#1 2011-04-16 20:30:05

breaksand30
Member
Registered: 2011-01-13
Posts: 39

Untar .pkg.tar.xz ?

Is there any way to untar a .pkg.tar.xz file? If I view with thunar I can go into the directory and see what is in it but I can't untar it in any way.

Offline

#2 2011-04-16 20:39:17

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Untar .pkg.tar.xz ?

See the manpage for xz.

Offline

#3 2011-04-16 21:23:24

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: Untar .pkg.tar.xz ?

tar xf package.pkg.tar.xz

works fine here

Offline

#4 2011-04-16 23:37:09

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: Untar .pkg.tar.xz ?

The -J or --xz flag to `tar` tells it to decompress using xz.

Offline

#5 2011-04-17 03:29:19

breaksand30
Member
Registered: 2011-01-13
Posts: 39

Re: Untar .pkg.tar.xz ?

Ah thanks, got it working now. Also, another quick question. Can you install a package from that uncompressed directory?

Offline

#6 2011-04-17 04:01:59

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Untar .pkg.tar.xz ?

breaksand30 wrote:

Ah thanks, got it working now. Also, another quick question. Can you install a package from that uncompressed directory?

If you want to update the local database manually, then yes.

If you're asking that because you want to modify something in a package before installing it, then read up about PKGBUILDs and modify the package that way.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#7 2011-04-17 04:36:16

breaksand30
Member
Registered: 2011-01-13
Posts: 39

Re: Untar .pkg.tar.xz ?

Xyne wrote:
breaksand30 wrote:

Ah thanks, got it working now. Also, another quick question. Can you install a package from that uncompressed directory?

If you want to update the local database manually, then yes.

If you're asking that because you want to modify something in a package before installing it, then read up about PKGBUILDs and modify the package that way.

Alright thanks. So I could download the .pkg.tar.xz from a mirror site, unxz it, and move all the files where they need to go?

Offline

#8 2011-04-17 06:43:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Untar .pkg.tar.xz ?

Pacman can install .tar packages just fine. I don't compress packages I install from AUR and I have no problems with 'pacman -U foo.pkg.tar'.

Offline

#9 2011-04-17 08:48:00

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: Untar .pkg.tar.xz ?

breaksand30 wrote:

So I could download the .pkg.tar.xz from a mirror site, unxz it, and move all the files where they need to go?

Yes, but it's a bad idea (tm)

Offline

#10 2011-04-17 14:35:23

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Untar .pkg.tar.xz ?

breaksand30 wrote:
Xyne wrote:
breaksand30 wrote:

Ah thanks, got it working now. Also, another quick question. Can you install a package from that uncompressed directory?

If you want to update the local database manually, then yes.

If you're asking that because you want to modify something in a package before installing it, then read up about PKGBUILDs and modify the package that way.

Alright thanks. So I could download the .pkg.tar.xz from a mirror site, unxz it, and move all the files where they need to go?

You could, but unless you figure out how to update the local database when doing that, those files will not be tracked by pacman.

Never install anything without Pacman. The PKGBUILD system is simple and anything that you need to install can be installed with it. You do not want a large number of untracked files cluttering your system. They will only lead to problems with future installations, upgrades and removals.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#11 2011-04-17 22:48:03

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: Untar .pkg.tar.xz ?

Xyne wrote:

Never install anything without Pacman. The PKGBUILD system is simple and anything that you need to install can be installed with it. You do not want a large number of untracked files cluttering your system. They will only lead to problems with future installations, upgrades and removals.

Or if you must install something manually, make sure it installs to /usr/local/ since pacman doesn't touch anything under there (at least it shouldn't if PKGBUILD authors are packaging correctly!)

Offline

Board footer

Powered by FluxBB