Package Management

Quiz on installing,updating,and managing software packages on Linux.

1. Which package manager is primarily used for Python?
2. Select all package managers used for JavaScript development.
3. The 'package.json' file is used to declare project dependencies in Node.js projects.
4. What is the filename of the file used by Composer to manage PHP dependencies? (include .json extension)
5. What does the '-g' flag indicate when using 'npm install'?
6. Which of the following are standard types of dependencies in a package.json file?
7. Yarn and npm use the same lock file format.
8. Which command updates all npm packages to their latest versions within version constraints?
9. What command installs a package as a dev dependency with npm? (format: npm install <flag> <package>)
10. Which package managers are commonly used on Linux systems?
11. What is the primary purpose of a lock file (e.g., package-lock.json, yarn.lock)?
12. Running 'npm install' without arguments installs all dependencies listed in package.json.
13. Which package manager is used for Ruby gems?
14. What does the 'npm audit' command do? (briefly describe its purpose)
15. Which commands uninstall a package using npm?
16. What is the default registry for npm packages?
17. Dev dependencies are required for the application to run in production.
18. Which package manager is commonly used for macOS to install command-line tools?
19. Which are valid ways to specify a package version in package.json?
20. What is the abbreviation for 'Node Package Manager'?
Answered 0 of 0 — 0 correct