Run pkg on windows

Открытие файлов в формате PKG

Варианты открытия PKG

Строго говоря, большинство PKG-файлов представляют собой архивы с очень разными типами данных внутри. Этим рассматриваемый формат подобен PAK, способы открытия которого мы уже рассматривали.

Архивы PKG могут относиться к компонентам установочных пакетов операционных систем от Apple, упакованным ресурсам некоторых видеоигр, а также контентом, загруженным из PlayStation Store или сжатому макету 3D-модели, созданному в продуктах Parametric Technology. Так или иначе, с открытием подобных файлов способен справиться мощный архиватор.

Способ 1: WinRAR

Популярный архиватор от Евгения Рошала поддерживает множество форматов сжатых данных, в числе которых есть и PKG.

    Откройте программу и воспользуйтесь встроенным файловым менеджером, чтобы добраться к целевому документу. Проделав это, дважды кликните ЛКМ по PKG, который хотите открыть.

Некоторые специфичные варианты PKG-файлов ВинРАР открыть неспособен, поэтому если возникли затруднения, переходите к следующему способу.

Способ 2: 7-Zip

Свободная утилита для работы с архивами 7-Зип может открывать практически любые архивные форматы, в том числе и неподдерживаемые другими архиваторами, потому хорошо подходит для нашей сегодняшней задачи.

  1. После запуска архиватора используйте окно просмотра файлов для перехода к местоположению PKG-файла и откройте его, дважды щёлкнув по нему мышкой.

  • Содержимое архива будет открыто для просмотра.
  • Конкретных недостатков в использовании 7-Zip для открытия PKG-файлов найти не удалось, потому данную программу мы и рекомендуем использовать для решения поставленной задачи.

    Заключение

    В качестве итогов хотим отметить, что большинство PKG-файлов, с которыми может столкнуться пользователь Windows, представляют собой либо установочные пакеты macOS X, либо зашифрованные архивы PlayStation Store, причём последние открыть на компьютере невозможно.

    Open/Extract xar/pkg File with Freeware on Windows/Mac/Linux

    xar (short for eXtensible ARchive) is an open source file archiver and the archiver¡¯s file format. It was created within the OpenDarwin project and is used in Mac OS X 10.5 for software installation routines, as well as browser extensions in Safari 5.0. Xar replaced the use of gzipped pax files.

    pkg is just .xar archives with a different extension and a specified file hierarchy. pkg is an OS X Installer file. This file format is used by Apple Inc. on its Macintosh line of computers and on the iPhone. It is also used by Sony PlayStation 3 on downloadable content over PlayStation Network. The contents of a PKG file can be installed using the Apple Installer application.

    The XAR project aims to provide an easily extensible archive format. Important design decisions include an easily extensible XML table of contents for random access to archived files, storing the toc at the beginning of the archive to allow for efficient handling of streamed archives, the ability to handle files of arbitrarily large sizes, the ability to choose independent encodings for individual files in the archive, the ability to store checksums for individual files in both compressed and uncompressed form, and the ability to query the table of content’s rich meta-data.

    Читайте также:  Драйвер для видеорегистратора windows

    The XAR file format has three main regions, The Header, The Table of Contents, and The Heap. The header is a small binary data structure that identifies the file format (file magic). The table of contents is parsed as an XML document. The heap occupies the remainder of the file. Files’ data are stored in the heap.

    Files in xar are individually compressed. This allows for quick extraction of individual files without the extra disk space requirements and CPU usage of extracting the entire archive, as compared to a compressed tar archive. This makes xar useful for quick restores of accidentally deleted or overwritten files, from a backup archive. Additionally, this means xar can use different compression methods for each file in the archive. For instance, it might not be a good idea to try to try to compress an already compressed file, but a large file might benefit greatly from using bzip2, whereas a small text file would be better served to use gzip.

    Open/Extract xar/pkg File on Windows

    Easy 7-Zip opens/extracts xar/pkg file easily on Windows. The Easy 7-Zip was developed based on 7-Zip. 7-Zip is a famous open source file archiver. The Easy 7-Zip is an easy-to-use version of 7-Zip. The open source freeware keeps all features of 7-Zip and adds a few useful features that makes the software more user-friendly.

    Easy 7-Zip works on Windows 10/8.1/8/7/Vista/2008/2003/XP/2000 (both 32-bit and 64-bit compatible).

    1. Free Download Easy 7-Zip
    2. Install Easy 7-Zip by step-by-step instructions
    3. The installation will associate xar/pkg with Easy 7-Zip automatically
    4. Double-click on xar/pkg file to open xar/pkg file with Easy 7-Zip

      You will see files or folders within the xar/pkg file then, click button Extract to extract the xar/pkg file.

    Alternatively, Right-click on xar/pkg file on Windows Explorer

    And then, choose Extract files. , Extract Here, or Extract to «folder\» to extract the xar/pkg file.

    Easy 7-Zip Download Links:

    Open/Extract xar/pkg File on Mac

    You can open pkg file directly on Mac. If you want to extract xar/pkg you need to install extra software. B1 Free Archiver opens/extracts xar/pkg file on Mac. B1 Free Archiver is a free software for creating archive folder and extracting archive file. B1 Archiver works on all platforms — Windows, Linux, Mac and Android. The freeware supports most popular formats including xar/pkg.

    B1 Free Archiver is compatible with:

    • Mac OS X 10.9 Mavericks
    • Mac OS X 10.8 Mountain Lion
    • Mac OS X 10.7 Lion
    • Mac OS X 10.6 Snow Leopard

    Open/Extract xar/pkg File on Linux

    You need to install xar on Linux.

    # wget https://xar.googlecode.com/files/xar-1.5.2.tar.gz
    # tar zxvf xar-1.5.2.tar.gz
    # cd xar-1.5.2
    # ./configure
    # make
    # make install

    If an error «configure: error: Cannot configure without xml2-config» occurs when running configure, please install libxml2-dev. On Debian, type:

    # apt-get install libxml2-dev

    List folders and files in xar/pkg:

    $ xar -tf archive.xar
    $ xar -tf archive.pkg

    Open/Extract xar/pkg file with xar on Linux:

    $ xar -xvf archive.xar
    $ xar -xvf archive.pkg

    xar command options:

    • -t: Lists an archive
    • -x: Extracts an archive
    • -v: Print filenames as they are archived
    • -f: Specifies an archive to operate on

    Alternatively, you can use p7zip to extract xar/pkg file. p7zip is the Unix command-line port of 7-Zip.

    Install p7zip-full on CentOS and Fedora

    # yum install p7zip-full

    Install p7zip-full on Debian and Ubuntu

    $ sudo apt-get install p7zip-full

    List directories and files in xar/pkg file

    $ 7z l archive.xar
    $ 7z l archive.pkg

    Extract xar/pkg file with p7zip on Linux

    How to install pkg config in windows?

    I am trying to do it, but all I can get is some source code that I don’t know how to do deal with I downloaded from http://pkgconfig.freedesktop.org/releases/ .

    8 Answers 8

    Download pkg-config and its depend libraries :

    This is a step-by-step procedure to get pkg-config working on Windows, based on my experience, using the info from Oliver Zendel’s comment.

    I assume here that MinGW was installed to C:\MinGW. There were multiple versions of the packages available, and in each case I just downloaded the latest version.

    Now CMake will be able to use pkg-config if it is configured to use MinGW.

    A alternative without glib dependency is pkg-config-lite.

    Extract pkg-config.exe from the archive and put it in your path.

    Nowdays this package is available using chocolatey, then it could be installed whith

    I did this by installing Cygwin64 from this link https://www.cygwin.com/ Then — View Full, Search gcc and scroll down to find pkg-config. Click on icon to select latest version. This worked for me well.

    1. Install mingw64 from https://sourceforge.net/projects/mingw-w64/. Avoid program files/(x86) folder for installation. Ex. c:/mingw-w64
    2. Download pkg-config__win64.zip from here
    3. Extract above zip file and copy paste all the files from pkg-config/bin folder to mingw-w64. In my case its ‘C:\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin’
    4. Now set path = C:\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin taddaaa you are done.

    If you find any security issue then follow steps as well

    1. Search for windows defender security center in system
    2. Navigate to apps & browser control> Exploit protection settings> Program setting> Click on ‘+add program customize’
    3. Select add program by name
    4. Enter program name: pkgconf.exe
    5. OK
    6. Now check all the settings and set it all the settings to off and apply.

    I would like to extend the answer of @dzintars about the Cygwin version of pkg-config in that focus how should one use it properly with CMake, because I see various comments about CMake in this topic.

    I have experienced many troubles with CMake + Cygwin’s pkg-config and I want to share my experience how to avoid them.

    1. The symlink C:/Cygwin64/bin/pkg-config -> pkgconf.exe does not work in Windows console.

    It is not a native Windows .lnk symlink and it won’t be callable in Windows console cmd.exe even if you add «.;» to your %PATHEXT% (see https://www.mail-archive.com/cygwin@cygwin.com/msg104088.html).

    It won’t work from CMake, because CMake calls pkg-config with the method execute_process() (FindPkgConfig.cmake) which opens a new cmd.exe.

    Solution: Add -DPKG_CONFIG_EXECUTABLE=C:/Cygwin64/bin/pkgconf.exe to the CMake command line (or set it in CMakeLists.txt).

    2. Cygwin’s pkg-config recognizes only Cygwin paths in PKG_CONFIG_PATH (no Windows paths).

    For example, on my system the .pc files are located in C:\Cygwin64\usr\x86_64-w64-mingw32\sys-root\mingw\lib\pkgconfig. The following three paths are valid, but only path C works in PKG_CONFIG_PATH:

    • A) c:/Cygwin64/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig — does not work.
    • B) /c/cygdrive/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig — does not work.
    • C) /usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig — works.

    Solution: add .pc files location always as a Cygwin path into PKG_CONFIG_PATH.

    3) CMake converts forward slashes to backslashes in PKG_CONFIG_PATH on Cygwin.

    It happens due to the bug https://gitlab.kitware.com/cmake/cmake/-/issues/21629. It prevents using the workaround described in [2].

    Solution: manually update the function _pkg_set_path_internal() in the file C:/Program Files/CMake/share/cmake-3.x/Modules/FindPkgConfig.cmake. Comment/remove the line:

    4) CMAKE_PREFIX_PATH, CMAKE_FRAMEWORK_PATH, CMAKE_APPBUNDLE_PATH have no effect on pkg-config in Cygwin.

    Solution: Use only PKG_CONFIG_PATH as an environment variable if you run CMake builds on Cygwin. Forget about CMAKE_PREFIX_PATH, CMAKE_FRAMEWORK_PATH, CMAKE_APPBUNDLE_PATH.

    Программы для открытия Mac OS формата pkg для Windows

    Перед тем как открыть pkg файл, давайте сначала разберемся: что же это за формат такой pkg и где его используют. Файлы с расширением pkg в основном встречаются в операционной системе Apple Mac, а также на таких устройствах, как iPhone и iPad.

    PKG — это сжатый файл, в котором содержится информация необходимая для установки приложений на жесткий диск.
    Формат pkg был разработан для упрощения установки программ и обновлений.

    Какой софт подойдет для Windows

    В Mac OS файлы такого формата можно открыть с помощью встроенного установщика Apple Installer. Для установки достаточно просто дважды кликнуть по файлу.

    А вот для Windows 7, 8 и ранних версий существует целая группа программ:

    • WinRAR;
    • DAEMON Tools Lite;
    • VirtualDJ;
    • PrintPratic;
    • VLC Media Player.

    Из этого небольшого списка выделим и рассмотрим лишь две основные — WinRAR и DAEMON Tools Lite.

    Файловый архиватор WinRAR

    Работает только в Windows OS. Считается лучшим архиваторов по соотношению объема сжатия к скорости работы, основная цель которого — уменьшить размер входящих файлов. Экономия места никогда не бывает лишней.

    WinRAR позволяет выполнять такие действия как:

    1. архивирование любого вида файлов;
    2. создание само распаковывающегося архива;
    3. выбрать тип архива;
    4. сохранить путь по которому в дальнейшем архив будет распаковываться;
    5. создать разбитый на части архив;
    6. заблокировать архив;
    7. создать пароль для архива;
    8. добавлять/удалять и изменять файлы в уже существующем архиве.

    Эмулятор виртуального привода DAEMON Tools Lite

    DAEMON Tools Lite — мощная программа, позволяющая эмулировать виртуальный привод с поддержкой множества систем защиты.

    Этот софт позволит вам: создавать iso, mdf, mdx и mds образы из CD/DVD/Blu-ray дисков с функцией сжатия, а также возможность защищать ваш образ паролем.

    Несмотря на то, что размер программы сравнительно небольшой, DAEMON Tools может обходить средства защиты от копирования, что позволяет выполнить эмуляцию как обычного диска, так и защищенного такими системами, как Laserlock, StarForce, SafeDisc, CDCOPS, Securom, Protect CD и др.

    Смело можно сказать, что данное приложение просто необходимо ноутбукам и нетбукам, которые поставляются без оптического привода. Программа является совершенно бесплатной, любой желающий может скачать ее и установить на свой Windows.

    Читайте также:  Revo uninstaller pro для windows 10
    Оцените статью