Archlinux: Createirƙiri fakiti-dandamali na dandamali kuma daga .deb fakitoci

Kimanin shekara guda da ta gabata na bayyana yadda ƙirƙiri fakiti don Archlinux. Da kyau, a yau zan yi bayanin yadda ake ƙirƙirar su daga fakiti .deb, wadanda aka yi amfani da su a ciki Debian / Mint / Ubuntu / sauransu.
Wannan labarin ya tashi bayan karanta tambaya daga mai amfani a cikin tattaunawar jorgegc saboda ba zan iya shigar da kunshin daga AUR ba, galibi saboda ya tsufa kuma ana amfani da sigar katsewa na PKGBUILD (abin farin ciki a baya na yi fakiti ta wannan hanyar), Zan kuma bayyana yadda ake yin fakitin shirye-shiryen da suke buƙata 32-bit dakunan karatu, na lambar rufewa o an riga an tattara da cewa yana da kunshe daban daban don zazzagewa.

Tushen PKGBUILD iri ɗaya ne, kawai tare da changesan canje-canje.
Canjin farko zai zama amfani da jumla idan elif by Mazaje Ne


if [ "${CARCH}" = 'x86_64' ]; then
ARCH='amd64'
md5sums=('192a0a222893d59d95f00c34f3c8a674')
depends=('openal' 'lib32-openal')
elif [ "${CARCH}" = 'i686' ]; then
ARCH='i386'
md5sums=('047c670443124193c5cc3dd54da99925')
depends=('openal')
fi
source=("http://www.unaurl.com/files/${name}.$ARCH.deb")

A cikin wannan misalin an ayyana mai canji wanda za'a yi amfani dashi daga baya don canza URL a ina ne kunshin (a wannan yanayin tsarin ginin kunshin don saukewa).
Bugu da kari, dangane da gine, da MD5 jimla don haka zamu canza waɗannan zuwa daidai.

Lokacin amfani da makepkg -g don samar da MD5sum Wannan kawai zai samar da wanda yayi daidai da tsarin ginin da kake amfani da shi. Don sanin adadin MD5 na ɗayan kunshin sauke shi kuma amfani da umarnin md5sum fayil.deb don sanin naku

A ƙarshe mun ga cewa a cikin misali mun canza masu dogaro. A wasu shirye-shiryen 64-bit ya zama dole a girka 32-bit iri na wasu dakunan karatu don haka dole ne mu nuna su. Idan basu zama dole ba sai kawai a bayyana mai canzawa ta yadda aka saba.

Yanzu don kunshin .deb kawai zamu buƙaci layuka masu zuwa a cikin aikin kunshin ():

cd "${srcdir}/"
tar xvzf data.tar.gz -C .
cp -r usr ${pkgdir}

Kamar yadda kake gani, muna buƙatar layuka 3 kawai a cikin wannan yanayin don samar da kunshin. Idan wani abu ya zama dole (misali kwafin fayil wanda bai zo da kunshin ba, ko gyaggyara abun ciki ɗaya ba) dole kawai a sanya shi kamar kowane kunshin.

Hakanan za'a iya amfani dashi (tare da wasu canje-canje) idan a maimakon .deb zamuyi amfani da fakiti rpm ko wasu nau'ikan fakiti. Aiki gina () ba a buƙata, don haka ba ma buƙatar ƙara shi.

Kuma voila, mun riga mun sami kunshin multilib ko an ƙirƙira shi daga fakitin bashi wanda yake shirye don amfani.
Ina fatan kuna so shi kuma ya bayyana min sosai 😀


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

32 comments, bar naka

Bar tsokaci

Your email address ba za a buga.

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

  1.   ciwon ciki m

    Shin bai fi sauƙi a yi amfani da shigarwa ba?

  2.   Luciano Lagassa m

    Barka dai. Ina da wasu rubutun bash. Toaya don samar da manyan fayiloli da fayiloli don kunshin bashi. Kuma na ƙarshe don ƙirƙirar kunshin daga duk fayiloli da manyan fayiloli. Idan kuna da sha'awa, zan iya raba shi.

    1.    jorgecg m

      Tabbas yana da sha'awa ... aƙalla ni.

      Yanzu ina tare da Manjaro ina godiya da duk bayanan da zasu yiwu.

  3.   jorgecg m

    Yaya girman ku, abokin tarayya.

    Zan gaya muku a cikin taron cewa idan zaku iya bayyana min yadda ake hada kunshin .deb kuma ban fada muku komai ba don kar na ci mutuncin karimcin ku…. kuma ina zuwa shafin kuma naga cewa kun loda labarin dake bayyana dukkan aikin.

    Wannan yana nuna cewa kai mutum ne mai karimci.

    Na ce, kai dan tsako ne

    gaisuwa

  4.   Anibal m

    Aboki ne babba, da zarar na gwada laushi wanda ban tuna sunan da ya canza daga .deb zuwa .rpm, amma bai yi min kyau ba.

    Wani da baka zai iya gwadawa idan wannan software ɗin ya wuce zuwa rpm kuma shigarwar ya buɗe da kyau?

    http://www.justcloud.com/download/linux-64

    Yana zuwa madadin a cikin gajimare, Na riga na biya ɗan lokaci kuma ina da fiye da 40gb a cikin girgije =)

  5.   Inspiron m

    Babban! A koyaushe ina fada wa kaina cewa wata rana ina son yin kunshin, koda kuwa don sanin yadda ake yin sa ne :).

    A cikin ire-iren waɗannan sakonnin zan yi godiya cewa shafin yanar gizon ya aiwatar da zaɓi don ƙara shigarwar kamar wannan a cikin "waɗanda aka fi so" na asusun

    1.    chinoloco m

      Gabaɗaya na yarda, na shuka shi, amma ba komai 🙂
      Hakanan zai zama mai kyau, don iya bin wasu masu amfani

  6.   Rabba m

    Babban dattijo, Na kasance ina amfani da manjaro na fewan kwanaki kuma don karatu ina buƙatar shigar da fakiti daga Cisco amma kawai yana da kunshin .deb na sabuwar sigar kuma ke a cikin AUR koyaushe yana bani kuskure lokacin tattarawa, Ina fata da wadannan matakan zan iya girka ta tunda da karfi ina amfani da mint lint, na gode sosai

  7.   mitsi m

    don ganin idan wani ya kuskura ya sanya a AUR Multisystem

    ya dogara da dakunan karatu na kwasa-kwasai wadanda basa kan layi

    Amma idan yana aiki, aikinta shine ƙirƙirar abubuwa masu yawa na ISO tare da grub2 mafi kyau fiye da unetbootin wanda kawai yake aikatawa.

    A halin yanzu ina da ubuntu ISO na cikinsa wanda ke bani damar kara hotuna idan ina son kora daga ita kan USB din kanta

    amma idan babu wanda ya kuskura ya ajiye tikitina

  8.   mitsi m

    Yi haƙuri, akwai tsarin abubuwa da yawa, kuma ina tsammani ba

    1.    mitsi m

      A cikin tsarin aiki da yawa ...

      amma fatresize tunda yaourt yana ba da matsala, kuma sun sanya shi a matsayin zaɓi

  9.   Marcos m

    Babban 😀 a yarda da "Purrr" wani shiri don sake sunan fayiloli a girma.

  10.   Aprxxas m

    Na gode,

    A halin yanzu a cikin AUR suna kawar da kunshin da basu da aikin kunshin (), ta yaya zan iya sanin waɗanne layuka zan saka a can? Wato, Ina da fakitoci da yawa kuma nayi hakan ta wannan hanyar amma ban sani ba ko lafiya https://github.com/abr4xas/Arch-pkgbuild/blob/master/%20django-admin-honeypot/PKGBUILD abin da da gaske na yi shine wuce abin da ke cikin gina () don haɗawa () amma kamar yadda na ce, Ban sani ba ko yana da kyau ... Shin za ku ba ni ra'ayoyinku da shawarwarinku?

    Godiya 😀

  11.   Azazel m

    Godiya ga bayanin zan yi masa alama don tunani na gaba.

  12.   Rariya m

    Shin wani zai iya bayyana min menene shi, ni sabo ne, kuma ban sani ba idan wannan ya taimaka min shigar da kunshin .deb amma a cikin manjaro, wasa ya zama daidai. Ee, yana aiki?

    Na duba kuma sun gaya mani in girka kunshin deb2targz amma na sami kuskure lokacin shigar da shi daga tashar, kuma ban sani ba ko zai iya zama

    1.    germain m

      Haka yake faruwa da ni; Ina buƙatar shigar a kan Kademar wanda ya dogara da Arch; 'yan fakitoci guda biyu wadanda kawai zan shiga .deb
      Shin wani zai iya taimaka min?

      1.    valdo m

        Idan abin da kuke nufi gazawa ne a shigarwar deb2targz, kawai na gama girka shi tare da umarnin yaourt -S deb2targz. Tabbas, a cikin ArchLinux.

  13.   Free Adana Cloud m

    Sanarwa sosai. Godiya ga rabawa.

  14.   hushi Tsuntsaye m

    Kyakkyawan matsayi. Na gode da raba wannan bayanin mai amfani.

  15.   Ayyuka don PC m

    Godiya ga wannan post ɗin mai taimako. Zai taimaka sosai.

  16.   jacob m

    hi, zaku iya barin rubutun don jujjuyawar da yadda ake amfani da shi? Shi ne cewa a cikin sassan yana rikicewa kaɗan, Dama ina da bashin da nake so in canza kuma na san cewa yana yiwuwa saboda google chrome na AUR bashi ne amma ban san yadda ake yin "MAKEPKG SI" da wani bashi 🙁