Convert rpm/deb to .pkg.tar.gz

I use checkinstall to prevent junk files ruining my system while installing a program from source. But checkinstall can only generate Slackware/rpm/deb packages. Is there any convenient way to directly convert rpm/deb to .pkg.tar.gz, which can be installed using pacman -U?
Note. By directly I mean no need to manually generate a PKGBUILD. The package information should be extracted from rpm/deb package automatically.
Thanks.

> Slackware/rpm/deb
IIRC Slackware uses plain tarballs, but this means no dep checks.
> Note. By directly I mean no need to manually generate a PKGBUILD.
PKGBUILDs are necessary only when you create sth from source. deb / rpm packages are already compiled.
Edit: spec2arch from pkgtools pacakge can create PKGBUILDs from .spec files, but I don't know if it's of any help.
Last edited by karol (2010-07-18 18:31:13)

Similar Messages

  • RPM to pkg.tar.gz and Pacman

    Hello,
    Is there any easy way to convert rpm packages into Pacman compatible ones?
    I'm not interested in installing rpm's in Arch Linux (and if it is possible to do that, I don't even know how to do it). My problem is that I need/want to install the OpenOffice suite in my native language: portuguese from Portugal (in the Arch repository there are only packages of the Brazilian portuguese localization). And, when I unpack the OOo_2.1.0_LinuxIntel_install_pt.tar.gz file I've downloaded from the OpenOffice official site, the only thing I get is rpm's. Once I used Alien in Ubuntu to convert rpm's into deb's and It works very well.
    How can I do something similar in Arch?

    DERA wrote:Hello,
    Is there any easy way to convert rpm packages into Pacman compatible ones?
    I'm not interested in installing rpm's in Arch Linux (and if it is possible to do that, I don't even know how to do it). My problem is that I need/want to install the OpenOffice suite in my native language: portuguese from Portugal (in the Arch repository there are only packages of the Brazilian portuguese localization). And, when I unpack the OOo_2.1.0_LinuxIntel_install_pt.tar.gz file I've downloaded from the OpenOffice official site, the only thing I get is rpm's. Once I used Alien in Ubuntu to convert rpm's into deb's and It works very well.
    How can I do something similar in Arch?
    Why don't you take the PKGBUILD of one of these files and modify it accordingly to build your locale?

  • Convert .pkg folder to .pkg.tar.gz?

    I just build a package gmchess-0.20-1-i686.pkg.tar.gz from PKGBUILD,  I unpack the gmchess-0.20-1-i686.pkg.tar.gz and create a folder gmchess-0.20-1-i686.pkg, after changing some .png files in this folder, I compress the gmchess-0.20-1-i686.pkg folder back to gmchess-0.20-1-i686.pkg.tar.gz, however it can not be installed with command pacman -U, I try to search wiki, but get no clues, thanks for help.
    $ sudo pacman -U gmchess-0.20-1-i686.pkg.tar.gz
    Password:
    loading package data...
    error: missing package metadata in gmchess-0.20-1-i686.pkg.tar.gz
    error: 'gmchess-0.20-1-i686.pkg.tar.gz': invalid or corrupted package

    Xyne wrote:
    Open up the PKGBUILD and replace the names of the old png files with the names of the new ones in the "source" array, e.g.:
    source=(old_img_1.png old_img_2.png old_img_3.png)
    source=(new_img_1.png new_img_2.png new_img_3.png)
    Then run "makepkg -g" to generate the new md5sum array. Open the PKGBUILD again and replace the old md5sum array with the new one.
    Thanks for your detailed reply, here is PKGBUILD, there is no source array about png, can I just put in the source array for new pngs?
    =================================================================================================
    # Contributor: yetist <[email protected]>
    pkgname=gmchess
    pkgver=0.20
    pkgrel=1
    pkgdesc="Chinese chess game"
    arch=("i686" "x86_64")
    url="http://code.google.com/p/gmchess/"
    license=('GPL2')
    depends=("gtkmm" "libglademm")
    source=("http://gmchess.googlecode.com/files/$pkgname-$pkgver.tar.bz2")
    md5sums=('14ac37609c2fd6f0611001ed4508d688')
    build() {
            cd "$startdir/src/$pkgname-$pkgver"
        ./configure --prefix=/usr || return 1
            make || return 1
            make DESTDIR="$startdir/pkg" install || return 1

  • Why not using delta pkg.tar.gz?

    hello everybody,
    im new archlinux user, so i have question.
    why archlinux dont using delta pkg.tar.gz packages? opensuse provides updates in delta rpm binary form.
    instead re-downloading all new packages, it would be nice to download (update) delta packages only, which is smaller in size. bcoz not every people have unlimited bandwidth and quota.
    thanks,
    ps: sorry for my poor english

    @Allan .. Is it in usable state? I read the md5sums problem was blocking this.
    Is there a way to try that out? If devs can set up a small repository (may be only with  core packages), I will be glad to test/bug fix/( or code ). I have a pretty slow connection (75 kbps ....yes it is a small "b" [Dont laugh ]..though 24/7 unlimited.. ) and this is one of the features that i want badly to be implemented in arch.
    PS: Just like sva_h4cky0 this was one of my first questions on BBS. And thanks to Shining for all the work he has put into this.

  • Missing update package xproto-7.0.14-1-i686.pkg.tar.gz

    today's updates include a buttload of updates. one of which is xproto-7.0.14-1-i686.pkg.tar.gz, even though its not in the official repos. which is still stuck at 7.0.13, am i missing somehting? or did this package sliped?
    posting my pacman -Syu
    :: Synchronizing package databases...
    --2008-11-30 14:45:07-- ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz
    => `/var/lib/pacman/core.db.tar.gz.part'
    Resolving ftp.archlinux.org... 209.85.41.144, 209.85.41.145
    Connecting to ftp.archlinux.org|209.85.41.144|:21... connected.
    Logging in as anonymous ... Logged in!
    ==> SYST ... done. ==> PWD ... done.
    ==> TYPE I ... done. ==> CWD /core/os/i686 ... done.
    ==> SIZE core.db.tar.gz ... 32379
    ==> PASV ... done. ==> RETR core.db.tar.gz ... done.
    Length: 32379 (32K)
    100%[======================================>] 32,379 35.4K/s in 0.9s
    2008-11-30 14:45:10 (35.4 KB/s) - `/var/lib/pacman/core.db.tar.gz.part' saved [32379]
    --2008-11-30 14:45:10-- ftp://ftp.archlinux.org/extra/os/i686/extra.db.tar.gz
    => `/var/lib/pacman/extra.db.tar.gz.part'
    Resolving ftp.archlinux.org... 209.85.41.145, 209.85.41.144
    Connecting to ftp.archlinux.org|209.85.41.145|:21... connected.
    Logging in as anonymous ...
    Error in server response, closing control connection.
    Retrying.
    --2008-11-30 14:45:12-- ftp://ftp.archlinux.org/extra/os/i686/extra.db.tar.gz
    (try: 2) => `/var/lib/pacman/extra.db.tar.gz.part'
    Connecting to ftp.archlinux.org|209.85.41.145|:21... connected.
    Logging in as anonymous ... Logged in!
    ==> SYST ... done. ==> PWD ... done.
    ==> TYPE I ... done. ==> CWD /extra/os/i686 ... done.
    ==> SIZE extra.db.tar.gz ... 423025
    ==> PASV ... done. ==> RETR extra.db.tar.gz ... done.
    Length: 423025 (413K)
    100%[======================================>] 423,025 25.3K/s in 13s
    2008-11-30 14:45:27 (31.2 KB/s) - `/var/lib/pacman/extra.db.tar.gz.part' saved [423025]
    --2008-11-30 14:45:28-- ftp://ftp.archlinux.org/community/os/i686/community.db.tar.gz
    => `/var/lib/pacman/community.db.tar.gz.part'
    Resolving ftp.archlinux.org... 209.85.41.144, 209.85.41.145
    Connecting to ftp.archlinux.org|209.85.41.144|:21... connected.
    Logging in as anonymous ... Logged in!
    ==> SYST ... done. ==> PWD ... done.
    ==> TYPE I ... done. ==> CWD /community/os/i686 ... done.
    ==> SIZE community.db.tar.gz ... 372576
    ==> PASV ... done. ==> RETR community.db.tar.gz ... done.
    Length: 372576 (364K)
    100%[======================================>] 372,576 88.6K/s in 4.6s
    2008-11-30 14:45:35 (78.4 KB/s) - `/var/lib/pacman/community.db.tar.gz.part' saved [372576]
    :: Starting full system upgrade...
    :: Replace synaptics with extra/xf86-input-synaptics? [Y/n]
    resolving dependencies...
    looking for inter-conflicts...
    Remove (1): synaptics-0.14.6.99-2
    Total Removed Size: 0.07 MB
    Targets (19): xf86-input-synaptics-0.99.1-1 gstreamer0.10-bad-0.10.9-1
    gstreamer0.10-bad-plugins-0.10.9-1
    gstreamer0.10-ffmpeg-0.10.6-1 gstreamer0.10-ugly-0.10.10-1
    gstreamer0.10-ugly-plugins-0.10.10-1 libdrm-2.3.1-2
    libgl-7.2-1 intel-dri-7.2-1 mesa-7.2-1 orca-2.24.2-1
    policykit-0.9-7 libpciaccess-0.10.5-1 xf86-video-intel-2.4.3-1
    xf86-video-vesa-2.0.0-2 xkeyboard-config-1.4-1
    xf86-input-evdev-2.0.7-1 xorg-server-1.5.3-2 xproto-7.0.14-1
    Total Download Size: 0.08 MB
    Total Installed Size: 47.08 MB
    Proceed with installation? [Y/n]
    :: Retrieving packages from extra...
    --2008-11-30 14:46:14-- ftp://ftp.archlinux.org/extra/os/i686/xproto-7.0.14-1-i686.pkg.tar.gz
    => `/var/cache/pacman/pkg/xproto-7.0.14-1-i686.pkg.tar.gz.part'
    Resolving ftp.archlinux.org... 209.85.41.145, 209.85.41.144
    Connecting to ftp.archlinux.org|209.85.41.145|:21... connected.
    Logging in as anonymous ...
    Error in server response, closing control connection.
    Retrying.
    --2008-11-30 14:46:15-- ftp://ftp.archlinux.org/extra/os/i686/xproto-7.0.14-1-i686.pkg.tar.gz
    (try: 2) => `/var/cache/pacman/pkg/xproto-7.0.14-1-i686.pkg.tar.gz.part'
    Connecting to ftp.archlinux.org|209.85.41.145|:21... connected.
    Logging in as anonymous ... Logged in!
    ==> SYST ... done. ==> PWD ... done.
    ==> TYPE I ... done. ==> CWD /extra/os/i686 ... done.
    ==> SIZE xproto-7.0.14-1-i686.pkg.tar.gz ... done.
    ==> PASV ... done. ==> RETR xproto-7.0.14-1-i686.pkg.tar.gz ...
    No such file `xproto-7.0.14-1-i686.pkg.tar.gz'.
    --2008-11-30 14:46:19-- http://archlinux.c3sl.ufpr.br/extra/os/i686/xproto-7.0.14-1-i686.pkg.tar.gz
    Resolving archlinux.c3sl.ufpr.br... 200.17.202.1, 200.236.31.1
    Connecting to archlinux.c3sl.ufpr.br|200.17.202.1|:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2008-11-30 14:46:20 ERROR 404: Not Found.
    warning: failed to retrieve some files from extra
    error: failed to commit transaction (unexpected error)
    Errors occurred, no packages were upgraded.
    anyone experiencing these?

    Yes, but here the package here continue to be not present
    It's only present in x86_64 repo.
    Last edited by Babets (2008-11-30 17:45:59)

  • Metainfo in .pkg.tar.gz

    I recently had cause to manually tweak a package after I had made it. I realized that I needed a script in /etc/profile.d/ that I didn't include. I didn't want to remake the whole thing because it's an svn install and I do try to keep the source clean by copying it into a new folder and building from there. So I referenced the wiki and the forums for how to manually edit a package and didn't find much (maybe I'm not looking hard enough/well enough).
    Anyway, the building packages wiki says
    Typically, the resulting package file is a file called foo.pkg.tar.gz.
    In fact, it is no more than a gzipped tar archive or 'tarball' which contains:
        * The files to install
        * .PKGINFO: contains all the metadata needed by pacman to deal with packages, dependencies, etc.
        * .FILELIST: lists all the files of the archive. It's used in order to uninstall the software or to check for file conflicts.
        * .INSTALL: a file used to execute commands after the install/upgrade/remove stage. (This file is present only if specified in the PKGBUILD.)
    However, I untarred the package and I only found .PKGINFO and the files. I understand not having a .INSTALL because I don't make use of pre_install() or post_install(), but there is no .FILELIST. Is that from an older version of the setup? Or was the file hidden away?
    By the way, ought I make a wiki page for manually editing a made package? It's simple, if you know where to look, but if you're not comfortable with playing with things and reading bash it might be painful.

    majiq wrote:
    Well, the makepkg -R doesn't touch the build() function, though, and really what I would've needed to do was skip most of the build() function until the end. I think there are some cases that might merit it. I could think it handy to modify an internal configuration file here or there without having to build the beast (the one-and-a-half-hour-to-compile beast in my case).
    Why is it not recommended? Is it because there's no solid record of what was done, then?
    exactly.
    afaik, if you use separated build() and package() function, you can simply edit the package() function and run makepkg -R

  • [SOLVED] Does .pkg.tar.gz contain all dependencies ?

    Hey , while doing "makepkg -s" .. the resulting .pkg.tar.gz is formed. Does this file contain all the dependencies as well ? Does this mean, if i store this file, Then in a new installation I wont have to do makepkg or anything. I can just install it by pacman -U <name.pkg.tar.gz> ?
    Last edited by prateek.bvcoe (2014-01-05 07:55:22)

    No, makepkg -s installs the dependencies prior to build / install. That is just the single package you are referring to. If you do pacman -U it won't say installing x,y, and z it will only say install x.
    Edit: I do not know of any way to put mutliple packages that can be installed simultaneously with one archive with pacman. It may be possible but I have not seen this.
    Last edited by dodo3773 (2014-01-05 07:50:49)

  • Archive transcode-0.6.12-1.pkg.tar.gz is corrupted - HELP?!

    Hey all,
    I've been trying to install transcode on arch 0.6.
    If i do
    pacman -Sy transcode
    I get an error
    error: archive transcode-0.6.12-1.pkg.tar.gz is corrupted
    I think it may be because my connection was interrupted during the download of transcode (even though pacman picked up where it left off later on).
    I've tried removing transcode, but I can't because it's not installed. How can I remove all traces of it, and re-download the package?
    Thanks a lot, sorry if it's an obviouse question, tried man pacman but no luck.
    Cheers,
    Thom

    No probs, after a little forum-surfing, I just did a
    pacman -Sc
    and that seemed to sort everything out!
    T.

  • Error: archive wine-0.9.11-1.pkg.tar.gz is corrupted

    I'm getting this when I try to upgrade wine. Anyone else?

    Just rm /var/cache/pacman/pkg/wine-0.9.11-1.pkg.tar.gz and do pacman -Syu again

  • [SOLVED] Mount /boot/efi fails after linux-....pkg.tar.xz upgrade

    Can anyone help with this please?  Sorry if it's a well known issue and I have just failed to find the solution, but I have searched for one.
    I use yaourt -Syu regularly, and generally it's great.
    BUT - every time linux-3.17...-x86_64.pkg.tar.xz is upgraded the system fails to reboot!  Throwing something like:
    Nov 17 16:09:49 cart systemd[1]: boot-efi.mount mount process exited, code=exited status=32
    Nov 17 16:09:49 cart systemd[1]: Failed to mount /boot/efi.
    Nov 17 16:09:49 cart systemd[1]: Unit boot-efi.mount entered failed state.
    Nov 17 16:09:49 cart mount[232]: mount: unknown filesystem type 'vfat'
    After much struggling I have discovered a workaround, but I don't understand it - or like it.  This is what I do:
    1. Boot from an archiso image cd in UEFI mode
    2. Mount the correct partitions on / /home and /boot
    3. # arch-chroot /mnt /bin/bash
    4. # cd /var/cache/pacman/pkg
    5. # pacman -U linux-3.16.3-1-x86_64.pkg.tar.xz  (or whatever is the latest upgrade)
    Then, when I exit and reboot all is well again.
    I use the rEFInd boot manager to choose between ArchLinux and ,reluctantly, Windows 8.1 - I suspect that might have something to do with my problem but I don't know what.
    If anyone can tell what I am doing wrong, please explain.
    Thanks
    John
    Last edited by JohnColeman (2014-11-18 15:58:51)

    Hi Matt,
    I think you've done it - thanks a lot.
    I changed this line in my /etc/fstab :
      UUID=0E51-F605          /boot/efi     vfat ...
    to
      UUID=0E51-F605          /boot     vfat ...
    and I think that's done the trick. 
    I did pacman -U linux-3.16.3-1-x86_64.pkg.tar.xz again without booting from an archiso image cd in UEFI mode, which would previously have failed - and it didn't.
    I look forward to the next actual upgrade of linux-3...
    Thanks again,  I can't remember how, or why, I went wrong in fstab but I won't do it again.
    John

  • Need a direct link for iptables 1.3.5-1.pkg.tar.gz

    i need a direct link for iptables 1.3.5-1.pkg.tar.gz so i can download it to a machine with no internet connection, and use pacman to install.
    this is also a newbie question, whats the differences between:
    iptables 1.3.5-1.pkg.tar.gz
    and
    iptables-1.3.5.tar.bz2
    cheers!!

    ftp://ftp.archlinux.org/current/os/i686 … pkg.tar.gz
    difference between .pkg.tar.gz and .tar.bz2 is that the .tar.bz2 is a source package (you'll need to build it), and .pkg.tar.gz is a binary package to be used with arch

  • Beryl-plugins-svn-276-1.pkg.tar.gz broken

    after pacman -Sy
    I upgrade beryl-plugins-svn.
    but
    error occured while installing beryl-plugins-svn
    here is the error message:
    installing beryl-plugins-svn...
    could not extract usr/share/beryl/cubecaps.png: Invalid argument
    errors occurred while installing beryl-plugins-svn
    done.
    I try
    tar zxvf beryl-plugins-svn-276-1.pkg.tar.gz
    failed

    You have to rebuild beryl-plugins-svn (and beryl-core-svn) yourself.
    PKGBUILDS can be found in this thread. Don't use the PKGBUILDs of the AUR.
    You have to use the command versionpkg instead of makepkg, perhaps you have to install it.
    If errors occur building beryl-plugins-svn then remove the line "find ...." (at the end of the PKGBUILD) and retry.
    hightower

  • Sudo-1.8.4-1-i686.pkg.tar.xz causes sudo/gksudo to fail

    Sudo and gksudo from the sudo-1.8.4-1-i686.pkg.tar.xz package fail with me, often producing a 'cannot open display' error, despite having 'Defaults env_keep += "HOME"' in /etc/sudoers. Happens with any program I'm trying to run. Downgrading to sudo-1.8.3.p2-2-i686.pkg.tar.xz makes everything work again as expected.
    Has something in the sudo logic or configuration changed, or is this a bug or whatever?

    Yes, I have experienced the same problem. After playing around with visudo, I commented the "Defaults env_keep += "HOME" option that I added in /etc/sudoers (therefore disabling it) and sudo/gksudo started functioning again for graphical applications. Something definitely changed, but I have no idea what..
    From the Arch Wiki this variable does the following;
    "Run X11 apps using sudo
    To allow sudo to start graphical application in X11, you need to add
    Defaults env_keep += "HOME" to visudo."
    But now it seems with the new sudo package that adding "Defaults env_keep += "HOME" disables the functionality of sudo/gksudo for X11 apps on my end?
    Last edited by iknelav (2012-02-22 02:03:52)

  • Xgl-git-20061214-1.pkg.tar.gz corrupted

    the archive itself is corrupted, and pacman says
    error: archive xgl-git-20061214-1.pkg.tar.gz is corrupted
    from danimoth's server i686
    it's not my connection because i've tried pacman -Syu a couple of times, deleting the 'corrupted' package in between from /var/cache/pacman/pkg/xgl-git...
    the archive itself doesn't extract with a tar -xf anyways, so either I'm stupid, or the package wasn't zipped properly.
    vogt

    same problem here

  • ...kernel26ck-2.6.20.ck1-1.pkg.tar.gz is corrupted

    hmmm... our friend pacman reports this on ck update:
    Proceed with upgrade? [Y/n]
    checking package integrity...
    error: archive kernel26ck-2.6.20.ck1-1.pkg.tar.gz is corrupted
    Any advice?

    Thanks noriko .
    It turned out to be mirror site issue (Austalian one - don't know why it has corupt packages? Might be ok now?).
    So, I just used ftp.archlinux.org... and it went happily.
    But, I don't want to use ftp.arch... it's for you guys on North American side of the world... I'd like something close to me and contribute to load sharing... Anyway... it's all dandy now.

Maybe you are looking for

  • Saving PDF for reading offline...

    OK I read a LOT of PDFs in my life. I thought the intelligent way would be to read them on the "magical iPad". When I try to save a PDF and read it there seems to be no 'love'. It's hard to get subjects such as "gdb internals" in ebooks via Apple.. A

  • Space designer pop and clicks

    Hi guys, I have two work stations in my studio. on my secondary wrokstation, I run a 1.8 dual powermac with the latest Logic 7.2. Ever since I upgraded to OSX 10.4.10 I'm having problems with the space designer. it starts creating clicks, pops and di

  • IPod touch won't turn on after restoring it to factory settings!!

    I restored my ipod touch 3g (32 gb) to factory settings last night because I'm supposed to be selling it to someone today, but now, more than 12 hours later, it won't turn on! I only get the start up screen with the apple logo and that little loading

  • Adding a description to imported movies in iTunes 7.5

    I am having a problem trying to add a description to a movie that I imported into iTunes 7.5. There is a column labeled "Description" and I cannot find out where to put the text I want to use for the description. I have looked through all the tabs in

  • I can't access the browser on my phone

    Im trying to access the browser on  my new black berry so i can download some new ringtones but i the icon isnt showing up and i don't knw how to set up my internet so i can access im new to the black berry and im totally lost with it so please help