issue181:c_c
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue181:c_c [2022/05/27 19:42] – créée d52fr | issue181:c_c [2022/06/02 18:16] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | For this issue, I would like us to look at software. Not just any software, but Ubuntu software. When I get software for Ubuntu, I prefer it to be packaged in the .deb format. Many years ago I had such a bad experience with Red Hat and .rpm and dependency hell, that has put me off rpm to this day. That was when a friend introduced me to Debian and the simplicity that was its package manager. I was so impressed that I would use alien to convert the packages to rpm, believing they were superior. You see, back in the day the propaganda had you believe Red Hat was the gold standard. (And we were all young and dumb.) | + | **For this issue, I would like us to look at software. Not just any software, but Ubuntu software. When I get software for Ubuntu, I prefer it to be packaged in the .deb format. Many years ago I had such a bad experience with Red Hat and .rpm and dependency hell, that has put me off rpm to this day. That was when a friend introduced me to Debian and the simplicity that was its package manager. I was so impressed that I would use alien to convert the packages to rpm, believing they were superior. You see, back in the day the propaganda had you believe Red Hat was the gold standard. (And we were all young and dumb.) |
For .deb files, my favourite tool is gdebi. The amount of information at your fingertips is amazing. If you never used gdebi to inspect a .deb file, what have you been doing with your life? | For .deb files, my favourite tool is gdebi. The amount of information at your fingertips is amazing. If you never used gdebi to inspect a .deb file, what have you been doing with your life? | ||
- | Here I have an example, and you can see 4 tabs, Description, | + | Here I have an example, and you can see 4 tabs, Description, |
- | For now, I would like you to open a .deb file with file roller or your favourite archiver. This is where you will notice slight differences in the same .deb package for pure Debian and Ubuntu and other Debian derivatives. This is the reason why people tell you not to install Ubuntu packages in Debian. There is some homework for you - grab a pure Debian file and an Ubuntu file of the same package, something small, like sound converter or a terminal emulator and compare them by opening them with your archiver and we can talk bout them in the next issue? | + | Pour ce numéro, j' |
+ | |||
+ | Pour les fichiers .deb, mon outil préféré est gdebi. La quantité d' | ||
+ | |||
+ | Voici un exemple, et vous pouvez voir 4 onglets : Description, | ||
+ | |||
+ | |||
+ | **For now, I would like you to open a .deb file with file roller or your favourite archiver. This is where you will notice slight differences in the same .deb package for pure Debian and Ubuntu and other Debian derivatives. This is the reason why people tell you not to install Ubuntu packages in Debian. There is some homework for you - grab a pure Debian file and an Ubuntu file of the same package, something small, like sound converter or a terminal emulator and compare them by opening them with your archiver and we can talk bout them in the next issue? | ||
Most of you would have known only the software centre, as by default, that is what Ubuntu opens .deb files with. Now you can add another tool to your arsenal, namely Synaptic package manager. This will also gladly install your .deb files. Lastly I want to bring packagekit to your attention. As you can see, you have a lot of options when working with .deb files. | Most of you would have known only the software centre, as by default, that is what Ubuntu opens .deb files with. Now you can add another tool to your arsenal, namely Synaptic package manager. This will also gladly install your .deb files. Lastly I want to bring packagekit to your attention. As you can see, you have a lot of options when working with .deb files. | ||
- | From the command prompt, most of you would know apt (or apt-get) to install your software. I am here to tell you that dpkg is just as easy, with: dpkg -i <.deb file> and Bob's your uncle. It is intuitive with -i for install and -r for remove. Though the software centre is easy, it abstracts from installation messages. Since the .deb files are standardized (to an extent) you can write your own bash scripts to update your system. Examples of this are not hard to find. (https:// | + | From the command prompt, most of you would know apt (or apt-get) to install your software. I am here to tell you that dpkg is just as easy, with: dpkg -i <.deb file> and Bob's your uncle. It is intuitive with -i for install and -r for remove. Though the software centre is easy, it abstracts from installation messages. Since the .deb files are standardized (to an extent) you can write your own bash scripts to update your system. Examples of this are not hard to find. (https:// |
- | When I first started with Debian packages, you used the tool dpkg to install them. I still have nightmares about dpkg --reconfigure though... The difference in all of these package managers are the way they handle dependencies. Apt being the ‘top dog’ at the moment. | + | Pour l' |
+ | |||
+ | La plupart d' | ||
+ | |||
+ | À l' | ||
+ | |||
+ | |||
+ | **When I first started with Debian packages, you used the tool dpkg to install them. I still have nightmares about dpkg --reconfigure though... The difference in all of these package managers are the way they handle dependencies. Apt being the ‘top dog’ at the moment. | ||
To see the dependencies you would need to use the terminal instead, you see, software centre just goes ahead with -y install option. A GUI tool like gdebi allows you to see that your .deb file may need more. (Notice the Details-button) | To see the dependencies you would need to use the terminal instead, you see, software centre just goes ahead with -y install option. A GUI tool like gdebi allows you to see that your .deb file may need more. (Notice the Details-button) | ||
Ligne 17: | Ligne 31: | ||
This is where “new” package formats like Snap and AppImage make worrying about these things obsolete. I like to see boot messages whizz by, I like to see what else my .deb file needs. I like to look at my Lintian output, before installing anything, as I do not install a file when I see things like this: W: jellyfin-server: | This is where “new” package formats like Snap and AppImage make worrying about these things obsolete. I like to see boot messages whizz by, I like to see what else my .deb file needs. I like to look at my Lintian output, before installing anything, as I do not install a file when I see things like this: W: jellyfin-server: | ||
- | To realise that all of this information comes from a simple .deb file is nothing short of amazing. When you start treating your .deb files as information carriers and not just installers, there is another world opening up to you. | + | To realise that all of this information comes from a simple .deb file is nothing short of amazing. When you start treating your .deb files as information carriers and not just installers, there is another world opening up to you.** |
- | Now we could talk about all the command line options for these package managers to handle the humble .deb file, but I am sure you are familiar with the man command, besides I will link you at the end of the article as there is no point in reinventing the wheel. | + | Quand j'ai commencé à utiliser les paquets de Debian, on utilisait l' |
+ | |||
+ | Pour voir les dépendances, | ||
+ | |||
+ | C'est là que les « nouveaux » formats de paquets comme Snap et AppImage rendent obsolète le fait de se soucier de ces choses. J'aime voir les messages de démarrage défiler, j'aime voir ce dont mon fichier .deb a besoin. J'aime regarder la sortie de mon Lintian, avant d' | ||
+ | |||
+ | Réaliser que toutes ces informations proviennent d'un simple fichier .deb est tout simplement incroyable. Lorsque vous commencez à traiter vos fichiers .deb comme des porteurs d' | ||
+ | |||
+ | |||
+ | **Now we could talk about all the command line options for these package managers to handle the humble .deb file, but I am sure you are familiar with the man command, besides I will link you at the end of the article as there is no point in reinventing the wheel. | ||
I suppose I cannot leave you with only this titbit of information. You have the power at your fingertips! You can build your own deb-files. You need to install some .deb files to build some .deb files. HEH! Type the following in a terminal: sudo apt install dpkg-dev and sudo apt install devscripts | I suppose I cannot leave you with only this titbit of information. You have the power at your fingertips! You can build your own deb-files. You need to install some .deb files to build some .deb files. HEH! Type the following in a terminal: sudo apt install dpkg-dev and sudo apt install devscripts | ||
Ligne 26: | Ligne 49: | ||
Further reading: | Further reading: | ||
+ | |||
+ | https:// | ||
+ | |||
+ | Nous pourrions parler de toutes les options de ligne de commande permettant à ces gestionnaires de paquets de gérer l' | ||
+ | |||
+ | Je suppose que je ne peux pas vous laisser avec cette seule information. Vous avez le pouvoir au bout de vos doigts ! Vous pouvez créer vos propres fichiers deb. Vous devez installer certains fichiers .deb pour construire certains fichiers .deb. HEH ! Tapez ce qui suit dans un terminal : sudo apt install dpkg-dev et sudo apt install devscripts - pour commencer. Je ne me promènerai pas à travers la création d'un fichier .deb dans ce numéro car j'ai pris assez de place, mais pourquoi pas vous ? | ||
+ | |||
+ | J' | ||
+ | |||
+ | Pour en savoir plus : | ||
https:// | https:// | ||
+ | |||
issue181/c_c.1653673330.txt.gz · Dernière modification : 2022/05/27 19:42 de d52fr