Soluții

How to list the installed Packages on Linux

What Are Packages on Linux Systems?

Packages on Linux are similar to apps or program installers on macOS and Windows—broadly speaking. They come bundled in an archive file that you typically download from a central repository. Different Linux distributions use different formats to deliver these files to you—Debian and Ubuntu use DEB files, for example, while RHEL and Fedora use RPM files.

Packages aren’t necessarily complete, precompiled programs, however. Sometimes they’re libraries, which provide important functionality to other applications on your PC. Packages are typically installed, updated, and removed using a package manager. The package manager will also try to grab any dependencies when you install an application, too, so you don’t need to manually hunt down every single piece of code any given application requires to operate.

There are a few major package managers that you’ll commonly encounter. Red Hat-derived distributions (like Fedora) use the dnf package manager, Debian-derived distributions (like Ubuntu) use apt, and Arch-based distributions use pacman. There are also a few distribution-agnostic package managers like Snap and Flatpak that you can use on most any Linux system.

[mai mult...]

Cum pornim un server HTTP simplu folosing Python3 pe Linux

Acest server este foarte simplu si nu ar trebui utilizat in medii de productie.Exemplu de caz de utilizare: Sa presupunem ca lucarti la un proiect de dezvlotare web si doriti sa testati rapid cum arata fisierele dvs. HTML intr-un browser web.

Ruland comanda python3 -m http.server 80 intr-un terminal din interiorul locatiei proiectului, puteti configura instantaneu un server web local pentru a va servi fișierele din directorul curent prin HTTP. De exemplu, dacă rulați această comandă într-un director care conține un fișier index.html, puteți accesa acest fișier dintr-un browser web navigând la http://localhost/index.html.

[mai mult...]