This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Packet Management Tools

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

Linux package management tools are essential for installing, updating, and removing software packages on a Linux system. These tools streamline the process of managing software, ensuring that all dependencies are resolved and that the system remains up-to-date. They provide a centralized way to handle software installations, making it easier to maintain a consistent and secure environment.

Package management tools are typically specific to different Linux distributions. For example, Arch-based systems use tools that follow a rolling release model, providing the latest software versions. Debian-based systems focus on stability and ease of use, offering a vast repository of precompiled packages. Red Hat-based systems are known for their robustness and enterprise-level support, using tools that handle .rpm packages.

Universal package management tools are designed to work across different Linux distributions. They provide a consistent way to install and manage software regardless of the underlying system. These tools aim to simplify software distribution and reduce compatibility issues, making it easier for developers to distribute their applications.

One of the key benefits of package management tools is their ability to automate software updates. This ensures that all installed software is kept up-to-date with the latest security patches and features. Additionally, package managers often include features for managing software repositories, allowing users to add or remove repositories as needed.

Overall, Linux package management tools are indispensable for maintaining a well-functioning and secure system. They simplify the process of managing software, ensuring that all dependencies are met and that the system remains up-to-date. Whether for personal use or in a professional setting, these tools play a vital role in effective system administration.

1 - 🖥️apk

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the apk command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#                 █████╗ ██████╗ ██╗  ██╗
#                ██╔══██╗██╔══██╗██║ ██╔╝
#                ███████║██████╔╝█████╔╝ 
#                ██╔══██║██╔═══╝ ██╔═██╗ 
#                ██║  ██║██║     ██║  ██╗
#                ╚═╝  ╚═╝╚═╝     ╚═╝  ╚═╝
                                        
                                        
                                        

# apk is the tool used to install, upgrade, or delete software on a running system
# of Alpine Linux package management

# Install a package
apk add $package

# Remove a package
apk del $package

# Update repos
apk update

# Upgrade all packages
apk upgrade

# Find a package
apk search $package

# To list all installed packages, use:
apk info

# To determine which package a file belongs to:
apk info --who-owns /sbin/lbu

#==============================##==============================#
# CMD APK 						       #
#==============================##==============================#
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

2 - 🖥️bower

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the bower command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#                ██████╗  ██████╗ ██╗    ██╗███████╗██████╗ 
#                ██╔══██╗██╔═══██╗██║    ██║██╔════╝██╔══██╗
#                ██████╔╝██║   ██║██║ █╗ ██║█████╗  ██████╔╝
#                ██╔══██╗██║   ██║██║███╗██║██╔══╝  ██╔══██╗
#                ██████╔╝╚██████╔╝╚███╔███╔╝███████╗██║  ██║
#                ╚═════╝  ╚═════╝  ╚══╝╚══╝ ╚══════╝╚═╝  ╚═╝
                                                           
                                                         
																			
#==============================#
# CMD BOWER
#==============================##==============================#

# Install a package locally
bower install <package-name>

# Install a package locally directly from github
bower install <user>/<repo>

# Install a specific package locally
bower install <package-name>#<version>

# Install a package locally and save installed package into bower.json
bower install <package-name> --save

# Retrieve info of a particular package
bower info <package-name>

# List local packages
bower list

# Search for a package by name
bower search <package-name>

# Update a package to their newest version
bower update <package-name>

# Remove a local package
bower uninstall <package-name>

#==============================##==============================#
# CMD BOWER
#==============================##==============================#
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

3 - 🖥️cargo

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the cargo command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#   ██████╗ █████╗ ██████╗  ██████╗  ██████╗ 
#  ██╔════╝██╔══██╗██╔══██╗██╔════╝ ██╔═══██╗
#  ██║     ███████║██████╔╝██║  ███╗██║   ██║
#  ██║     ██╔══██║██╔══██╗██║   ██║██║   ██║
#  ╚██████╗██║  ██║██║  ██║╚██████╔╝╚██████╔╝
#   ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝  ╚═════╝ 

# Cargo is the Rust package manager
# Cargo downloads your Rust project's dependencies,
# compiles your project, makes packages, and upload them to crates.io

# To start a new project 
cargo new hello_world --bin     # program
cargo new hello_world --lib     # library

# Build a project
cargo build

# Build a project with optimizations turned on
cargo build --release

# Updates dependencies in Cargo.lock
cargo update            # update all
cargo update -p rand    # updates just “rand”

# run the project tests (from src/ and tests/)
cargo test

# search for a package
cargo search
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

4 - 🖥️carthage

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the carthage command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#   ██████╗ █████╗ ██████╗ ████████╗██╗  ██╗ █████╗  ██████╗ ███████╗
#  ██╔════╝██╔══██╗██╔══██╗╚══██╔══╝██║  ██║██╔══██╗██╔════╝ ██╔════╝
#  ██║     ███████║██████╔╝   ██║   ███████║███████║██║  ███╗█████╗  
#  ██║     ██╔══██║██╔══██╗   ██║   ██╔══██║██╔══██║██║   ██║██╔══╝  
#  ╚██████╗██║  ██║██║  ██║   ██║   ██║  ██║██║  ██║╚██████╔╝███████╗
#   ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝   ╚═╝   ╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝ ╚══════╝

# carthage
# A dependency management tool for Cocoa applications (Mac OS X)

# Download the latest version of all dependencies mentioned in Cartfile, and build them:
carthage update

# Update dependencies, but only build for iOS:
carthage update --platform ios

# Update dependencies, but don't build any of them:
carthage update --no-build

# Download and rebuild the current version of dependencies (without updating them):
carthage bootstrap

# Rebuild a specific dependency:
carthage build dependency
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░