{"id":28155645,"url":"https://github.com/skosachiov/repack-install-sh","last_synced_at":"2025-08-01T13:39:07.709Z","repository":{"id":183196950,"uuid":"669414951","full_name":"skosachiov/repack-install-sh","owner":"skosachiov","description":"Repack Linux install.sh or install.run applications into rpm or deb packages.","archived":false,"fork":false,"pushed_at":"2023-10-19T20:37:10.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-10-20T03:20:03.815Z","etag":null,"topics":["centos","debian","packages","rhel"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skosachiov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-22T07:44:53.000Z","updated_at":"2023-07-30T09:42:00.000Z","dependencies_parsed_at":"2024-03-11T18:15:10.007Z","dependency_job_id":null,"html_url":"https://github.com/skosachiov/repack-install-sh","commit_stats":null,"previous_names":["skosachiov/repack-install-sh"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skosachiov%2Frepack-install-sh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skosachiov%2Frepack-install-sh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skosachiov%2Frepack-install-sh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skosachiov%2Frepack-install-sh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skosachiov","download_url":"https://codeload.github.com/skosachiov/repack-install-sh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254292125,"owners_count":22046428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["centos","debian","packages","rhel"],"created_at":"2025-05-15T07:14:00.631Z","updated_at":"2025-05-15T07:14:42.974Z","avatar_url":"https://github.com/skosachiov.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# repack-install-sh\n\nRepack Linux install.sh or install.run applications into rpm or deb packages.\n\nThere is quite a lot of software for linux in the \"install.sh\" format. Developers want to \"simplify\" the installation process and use a dirty trick (install.sh) that is unacceptable in a corporate environment. The purpose of this project is to show a pipeline for rebuilding such software into deb or rpm.\n\n## environment\n\n- You need to create one or more virtual machine (qcow2 image) to generate rpm/deb. VM guest OS defines resulting package type.\n- The user from under which the ansible-playbook is called must be able to control the `virsh`.\n- apt/dnf install qemu-guest-agent spice-vdagent rsync\n- Create vm ansible user with certificate auth and nopassword sudo.\n- apt install build-essential or dnf groupinstall 'Development Tools'\n- Make snapshot for rollback to \"clear state\". `qemu-img snapshot -c snapshot-1 debian10-uefi.qcow2`\n\n## check snapshot\n\n\u003cpre\u003e\nqemu-img snapshot -l debian10-uefi.qcow2\nSnapshot list:\nID        TAG               VM SIZE                DATE     VM CLOCK     ICOUNT\n1         snapshot-0            0 B 2023-01-30 21:29:40 00:00:00.000          0\n2         snapshot-1            0 B 2023-07-22 17:32:12 00:00:00.000          0\n\u003c/pre\u003e\n\n## process single dir\n\n`ansible-playbook rebuild-pkg.yml -i inventories -u ansible -e \"var_binaries_dir=/tmp/1c/8_3_21_1484 var_rebuild_role=rebuild-1c var_component=server\"`\n\n*in this case, the directory name must match the version of the package*\n\n## process dir of dirs\n\n`find /tmp/1c/* -type d -maxdepth 1 -exec ansible-playbook rebuild-pkg.yml -i inventories -u ansible -e \"var_binaries_dir={} var_rebuild_role=rebuild-1c var_component=client\" \\;`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskosachiov%2Frepack-install-sh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskosachiov%2Frepack-install-sh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskosachiov%2Frepack-install-sh/lists"}