You are not logged in.

#1 2011-06-02 14:56:16

gamer01
Member
From: Bavaria - GER
Registered: 2011-06-02
Posts: 31

[Solved] converting *.tar.tar to .tar.xz

Hi Community

the last days i downloadet packages form the archlinux server via a windows, because of my poor conection at home.
some of those archives are *pkg.tar.tar, but my pacman awaits *.pkg.tar.xz

how can i extract the first arcive partially to *.pkg.tar

i searched the web and the wiki, but i just found out how to compleetly extract the arcive, but i have to compress it again anyway

sorry for my poor english wink

thanks in advance

Last edited by gamer01 (2011-06-03 10:04:13)

Offline

#2 2011-06-02 15:00:10

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

Re: [Solved] converting *.tar.tar to .tar.xz

You can use xz to compress them but pacman works well with uncompressed packages - I use them all the time.
Could you please tell us where did you find *pkg.tar.tar packages?

Offline

#3 2011-06-02 15:12:32

gamer01
Member
From: Bavaria - GER
Registered: 2011-06-02
Posts: 31

Re: [Solved] converting *.tar.tar to .tar.xz

i got them at archlinux.org/packages -> searching the package -> download form mirror

but my pacman ignores the packages when i put them in the /var/cache/pacman/pkg, because he awaits .xz from its database. i dont want to install them manually, i think konverting them with a skript (if possible) is easier

i also found out that it works with peazip to extract to the *pkg.tar and than i can use

xz

on my arch i just have the console so far (because of my internet i have to get all packages on another pc)

Offline

#4 2011-06-02 15:38:12

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: [Solved] converting *.tar.tar to .tar.xz

If you got them off the arch mirror are they just named incorrectly for some reason ? You can check the file type with the command

file [pkg file name] 

Which should outout

 [file name]: XZ compressed data

or

 [file name]: gzip compressed data, from Unix 

for some packages.

If that's the case you can just rename them to *tar.xz or tar.gz, if it calls them something else it may be trickier.

Offline

#5 2011-06-02 15:38:47

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

Re: [Solved] converting *.tar.tar to .tar.xz

I think that Windows might have mixed something up because I never saw *pkg.tar.tar packages. Can you tell me what packages that were (their names)?
What happens if you do

# pacman -U <somepackage>-pkg.tar.tar

?
Do you get any error?
How exactly did you try to install those packages before and what errors did you get?

Offline

#6 2011-06-02 16:00:13

gamer01
Member
From: Bavaria - GER
Registered: 2011-06-02
Posts: 31

Re: [Solved] converting *.tar.tar to .tar.xz

i checked the

file

and i found out that it is really xz compressed

it happend on many packages for example: wesnoth-data, vlc, wine, thunderbird, firefox
there where also some of them named correctly with *.xz

i can not understand how this could have happend, cause i did not change the names in any way (and of course i know how to show the file extentions on windows)

crazy shit
this are thinks why i hate windows big_smile

thanks a lot guys

just to answer compleetly:
@ karol
i didnt got errors when i use this command (with <somepackage>.pkg.tar.tar)
i did not got errors before, he ignored the packages and startet to download them again from the internet
eg.

pacman -S vlc

i now i will rename them correctly before copying them to my /var/cache/pacman/pkg

Offline

#7 2011-06-02 18:09:49

gamer01
Member
From: Bavaria - GER
Registered: 2011-06-02
Posts: 31

Re: [Solved] converting *.tar.tar to .tar.xz

how can i mark this Thread as solved???

Offline

#8 2011-06-02 18:11:26

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

Re: [Solved] converting *.tar.tar to .tar.xz

gamer01 wrote:

how can i mark this Thread as solved???

Just edit the first post and add '[solved]' to the thread's title.

Offline

#9 2011-06-03 10:04:54

gamer01
Member
From: Bavaria - GER
Registered: 2011-06-02
Posts: 31

Re: [Solved] converting *.tar.tar to .tar.xz

i did not know that i can edit the title ;P and how

Offline

Board footer

Powered by FluxBB