parent
9899ce98f7
commit
20d284c6ee
5 changed files with 125 additions and 0 deletions
62
shared/fedora/pkgs.ts
Normal file
62
shared/fedora/pkgs.ts
Normal file
|
@ -0,0 +1,62 @@
|
|||
#!/usr/bin/env bun
|
||||
|
||||
type SoftwareGroup = {
|
||||
name: string
|
||||
packages: string[]
|
||||
}
|
||||
|
||||
async function install(groups: SoftwareGroup[]) {
|
||||
const packageNames = groups.flatMap(x => x.packages)
|
||||
await Bun.$`dnf install -y --setopt install_weak_deps=False ${packageNames}`
|
||||
}
|
||||
|
||||
const EXT_SOFTWARES: SoftwareGroup[] = [
|
||||
{
|
||||
name: "Python", packages: [
|
||||
"python",
|
||||
"python-devel",
|
||||
"poetry"
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "NodeJS", packages: [
|
||||
"nodejs", "nodejs-devel"
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "Perl", packages: [
|
||||
"perl", "perl-devel"
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "Ruby", packages: [
|
||||
"ruby", "ruby-devel"
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "PHP", packages: [
|
||||
"php", "php-devel", "composer"
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "Java", packages: [
|
||||
"java-21-openjdk", "java-21-openjdk-devel",
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "QEMU", packages: [
|
||||
"qemu-user-static", "qemu-user-binfmt"
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "C", packages: [
|
||||
"bison", "flex", "vcpkg", "@c-development"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
const command = process.argv[2]
|
||||
|
||||
if (command === "install") {
|
||||
await install(EXT_SOFTWARES)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue