From cd4b55fd2f0b2e842192cd94ce7b9fa237db2f74 Mon Sep 17 00:00:00 2001 From: Adrian <59370927+adrianfusco@users.noreply.github.com> Date: Wed, 17 Nov 2021 08:06:35 +0100 Subject: [PATCH] New questions and spell check (#181) Added new questions related with KVM, Libvirt and DNF Co-authored-by: Adrian Fusco Arnejo --- README.md | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 85dca4c..b8fb3fe 100644 --- a/README.md +++ b/README.md @@ -1757,6 +1757,17 @@ In addition, you can specify in a spec how a certain package will be installed - #### Linux DNF +
+What is DNF?
+ +From the [repo](https://github.com/rpm-software-management/dnf): + +"Dandified YUM (DNF) is the next upcoming major version of YUM. It does package management using RPM, libsolv and hawkey libraries." + +Official [docs](https://dnf.readthedocs.io/en/latest/) + +
+
How to look for a package that provides the command /usr/bin/git? (the package isn't necessarily installed)
@@ -1973,10 +1984,32 @@ In time namespaces processes can use different system time.
What virtualization solutions are available for Linux?
+ + * [KVM](https://www.linux-kvm.org/page/Main_Page) + * [XEN](http://www.xen.org/) + * [VirtualBox](https://www.virtualbox.org/) + * [Linux-VServer](http://linux-vserver.org/Welcome_to_Linux-VServer.org) + * [User-mode Linux](http://user-mode-linux.sourceforge.net/) + * ...
What is KVM?
+ +Is an open source virtualization technology used to operate on x86 hardware. + +From the official [docs](https://www.linux-kvm.org/page/Main_Page) +Recommended read: + * [Red Hat Article - What is KVM?](https://www.redhat.com/en/topics/virtualization/what-is-KVM) +
+ +
+What is Libvirt?
+ +It's an open source collection of software used to manage virtual machines. It can be used with: KVM, Xen, LXC and others. It's also called Libvirt Virtualization API. + +From the official [docs](https://libvirt.org/) +Hypervisor supported [docs](https://libvirt.org/drivers.html)
#### Linux - AWK @@ -4255,11 +4288,32 @@ PEP8 is a list of coding conventions and style guidelines for Python #### Flask
-Can you describe what is Django/Flask and how you have used it? Why Flask and not Djano? (or vice versa)
+Can you describe what is Django/Flask and how you have used it? Why Flask and not Django? (or vice versa)
What is a route?
+As every web framework, Flask provides a route functionality that lets you serve a content of a given URL. + +There are multiple ways to map a URL with a function in Python. + +- Decorator: you can use python decorators. In this case we're using `app`. This `app` decorator is the instance of the `Flask` class. And route it's a method of this class. + +``` +@app.route('/') +def home(): + return 'main website' +``` + +- `add_url_rule` method: This is a method of the Flask class. We can also use it for map the URL with a function. + +``` +def home(): + return 'main website' + +app.add_url_rule('/', view_func=home) +``` +