- Extract .pkg and .mpkg files with xar on Linux
- 9 Replies to “Extract .pkg and .mpkg files with xar on Linux”
- Pkg файлы в linux
- ¶ DEB пакеты
- ¶ Установка .apk пакетов
- ¶ Установка .pkg.tar.zst, .tgz, .tbz, .tbz2, .pkg.gz пакетов
- ¶ Пример установки
- How to install .pkg file in ubuntu?
- Similar topics
- Run .pkg files in Linux [closed]
- 1 Answer 1
Extract .pkg and .mpkg files with xar on Linux
macOS installer packages have the .pkg extension which are xar archives, to extract them on Linux we need to download and compile xar from https://code.google.com/archive/p/xar/downloads.
Operating system: Linux Debian 9 / kernel 4.9.0-3-amd64
2. Download and extract xar-1.5.2.tar.gz
wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/xar/xar-1.5.2.tar.gz
tar -zxvf xar-1.5.2.tar.gz
4. Extract files with xar
9 Replies to “Extract .pkg and .mpkg files with xar on Linux”
it does not work: apt-get install build-essential libxml2-dev libssl1.0-dev zlib1g-dev E: Unable to locate package libssl1.0-dev
Linux Mint 19.3 my error is ;
“make: *** No targets specified and no makefile found. Stop.” I couldn’t find any specific solution.
Hi Bruno and vokhirion, Make sure that the ./configure is finishing successfully.
In case of an error, you must install the dependencies and retry the ./configure.
You have to use make and make install only after the ./configure was successfully.
My configure did not work. Here is the error:
============================================
checking for openssl/evp.h… yes
checking for OpenSSL_add_all_ciphers in -lcrypto… no
configure: error: Cannot build without libcrypto (OpenSSL)
================================================
I added the OpenSSL package (a higher version than the one recommended because the one recommended could not be found.
I reran the ./configure but got the same error, however, I found the libcrypto file:
===============================================
~/xar-1.5.2$ sudo find / -name libcrypto.so
/usr/lib/x86_64-linux-gnu/libcrypto.so I added the path to the LD_LIBRARY_PATH variable, but it still would not pick it up. Can you say what I might do to get the configure script to pick up the libcrypto file?
The missing libcrypo stuff is because debian has moved on and/or reorganised the openssl libraries. I found it simplest to go build the old debian packages. You can download them ready-built straight from debian packages repositories too.
libssl1.0.2_1.0.2u-1~deb9u1_i386.deb
libssl1.0-dev_1.0.2u-1~deb9u1_i386.deb
You probably need to uninstall libssl-dev if you have a 1.1-based version (Debian unstable does). Then you get a minor fight with apt that you should win easily.
Could you please write down the linux commands that we should be using now that the dependencies are no longer available to use this method?
I am very new at linux and couldn’t follow it after the dependencies were no longer found.
Any help would be appreciated.
Thanks
I could build xar without problems on a Raspberry Pi. But when I try to unpack an mpkg file, it refuses:
qic-warm:~/src> xar -xv -f 1528098253_uart_1_wire_clic_mikroc_arm.mpkg
Usage: xar -[ctx][v] -f …
-c Creates an archive
-x Extracts an archive
-t Lists an archive
….
Pkg файлы в linux
Метод создания chroot-окружения подходит для создания окружения с любым дистрибутивом, использующим репозиторий основанный на .rpm пакетах.
¶ DEB пакеты
Метод создания chroot-окружения подходит для создания окружения с любым дистрибутивом, использующим репозиторий основанный на .deb пакетах.
¶ Установка .apk пакетов
¶ Установка .pkg.tar.zst, .tgz, .tbz, .tbz2, .pkg.gz пакетов
Для установки .tgz, .tbz, .tbz2, .pkg.gz необходимо имеющийся пакет разархивировать с помощью утилиты tar:
#Для архивов сжатых с помощью GZIP (.gz, .gz2 и т.д.): tar -xvzf имя_файла #Для архивов сжатых с помощью BZIP (.bz, .bz2 и т.д.): tar -xvjf имя_файла #Для архивов сжатых с помощью XZ (.tar.xz, .txz): tar -xvJf имя_файла
- x — извлечь файлы из архива;
- v — подробный вывод информации на экран;
- f — Обязательная опция. Если не указать, Tar будет пытаться использовать магнитную ленту вместо файла;
- z — обработать архив сжатый gzip’ом;
- j — обработать архив сжатый bzip’ом.
После выполнения команды, будет создан каталог с именем, идентичным названию пакета .
Переход в созданный каталог:
Далее, все зависит от того, как была собрана программа: в виде исполняемого файла , или в исходном коде .
Перед установкой прочитать инструкцию (README), которая присутствует в каждом архиве.
Если программа собрана в виде исполняемого файла , в папке будет находиться файл, с расширением .sh или же с названием необходимой программы (например, firefox). Его достаточно просто запустить на исполнение:
Если же программа представлена в исходном коде , выполнить следующие команды:
./configure # Поиск необходимых для компиляции библиотек и заголовочных файлов make # компиляция программы sudo make install # установка программы
После установки выполнить очистку каталога от всех файлов полученных в результате компиляции:
¶ Пример установки
Для примера приведена установка GParted.
Клонируем актуальную версию GParted с GitHub:
git clone https://github.com/GNOME/gparted.git
В файле README указаны необходимые зависимости для устанавливаемой программы, если они отсутствуют в системе, то их необходимо установить.
Далее следует запустить формирование установочного файла:
Затем необходимо запустить:
Программа GParted установлена.
How to install .pkg file in ubuntu?
According to wiki, .pkg is the Mac OSX-specific package type. As little (again, according to wiki) is known about the format, it is not surprising dpkg cannot support it.
If there are other versions of the software you have, other than the .pkg file, you should probably pick the .deb file. That would be handled by dpkg.
We cant install .pkg files in Ubuntu .Please find out windows version of application and we can install using Wine
regards,
Christain
clouddesktoponline
Similar topics
Hey PHP Fans! If you’re a Linux fan and haven’t installed Screem to see if that doesn’t become your favorite PHP editor, I highly recommend it. It’s a snap to install on Ubuntu Linux, which has.
Over the last few days, I reinstalled Win2kSP2 to a spare harddrive I had just swapped into my Fujitsu LifeBook P1120 (long story
I love pexpect because it means I may never have to use expect again (I don’t do any heavy expect lifting — I just need simple tty control)! As a python advocate I find it embarassing how.
I am a perl newbie who is trying to write a script to automate a task. I have a large collection of compressed archives (mostly .tar.gz, tar.bz2, tar.Z, .tgz etc). This are stored in a number.
Hello I have recently installed DB2 express on UBUNTU and am not able to get it to start. I decided to uninstall and reinstall DB2. When I enter the command sudo ./db2_deinstall it says «No DB2.
Hi, This is the log file for my SP1 on 2005 install. Can anyone please look at this and tell me if this looks normal? I’m concerned about the following in the log: «Failed to read registry.
hi, I have got a batch file where i have written the following modules from CPAN: ppm install DBI ppm install DBD::mysql ppm install Config::Properties ppm install Net::SMTP ppm.
Dear all, I am trying to install File server Resource Manager to apply user level directory quota. Tried to use this link for help , it is as below: I checked the GIF file But on my.
Hello everyone: I met a problem when install blt2.4z. I have installed tcl8.4 and tk8.4 in my linux-x86 system. I install blt follow the step in INSTALL file. 1.tar zxvf BLT2.4z.tar.gz .
At BluePanda Dev, we’re passionate about building high-quality software and sharing our knowledge with the community. That’s why we’ve created a SaaS starter kit that’s not only easy to use but also.
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts.
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent.
Hello, I have a tabbed form. On each tab there is a subform. On Subform1 I have a series of combo boxes whose names are Combo1, Combo2, Combo3, etc. and button that if the user clicks will write.
Ⅱ. Download AntDB Community Version Download at: http://www.antdb.net/download, choose X86 version under Open Euler https://img1.imgtp.com/2023/06/14/hn1P9Kz2.png Ⅲ. Deploy AntDB Community.
What is the best, comprehensive Reference for programming Windows Applications in VB.NET. I have experience in programming in general, but not VB.NET. Thanks in advance.
I have been asked to publicise the next meeting of the UK Access User Group which will be on Thur 22 June from 16:00 to 17:30 UK time (UTC+1) The meeting is free and open to all (both members and.
I am new to Access VBA. We have an Access database which 20 staff are working together . i want a anyone to help me set up the popup message and notification to all the active users. The backend.
By using Bytes.com and it’s services, you agree to our Privacy Policy and Terms of Use.
To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.
Run .pkg files in Linux [closed]
Is it possible to run .pkg files in Ubuntu or Fedora. If so, how do I start with it? What’s .pkg file? It’s a file format used in Mac systems(Apple Inc.) Is there any alternatives which can run .pkg files in Linux distros? ( specifically Ubuntu or Fedora, I’m using latest version in both distros).
Sorry for that, .pkg is a format used in Mac systems. Here’s the wiki link for that — en.wikipedia.org/wiki/.pkg. I’ll edit the description.
1 Answer 1
You can unpack the Xar format using the xar archiver; perhaps the ark archive front-end can also handle the Xar format, as it links against libarchive12 , which provides read-only support for the Xar format.
OS X uses the Mach-O executable format, while Linux uses ELF. (Okay, Linux can also read some archaic a.out formatted files too, but this format is effectively dead on modern Linux systems.) There is an experimental Mach-O loader for Linux, but it sure sounds like a toy at this point. (You’d also need the libraries that applications use in order to actually run programs — that’d be another complication.)
So: Yes, you can unpack them. No, you cannot simply run OS X applications on Linux.
Thanks. 7zip was the best option for me to investigate a .pkg file. ark has dozens of dependencies that needed installing, yuck.
Since I cannot answer anymore, I’ll comment here: libarchive-tools has a package named bsdtar which extracts .pkg files and doesn’t require another OS of dependencies. A simple bsdtar xvf /path/to/file.pkg is enough.