Software is submitted to an "apt" respository. you can add community repos by using
`~$ add-apt-repo`
`~$ dpkg` (package installers)
- using this means that wheneve we upate our system, the repo that owns the software will also be checked for updates
# RPM
`rpm [options] {package-name}`
<u>common options</u>
- `-i` install
- `-e` uninstall
- `-h` progress bar
# YUM
`yum [options] [subcommand] {package-name}`
<u>Common subcommands</u>
- install
- remove
- update
# DNF
`dnf [options] [subcommand] {package-name}`
<u>common subcommands</u>
- install
- remove
- upgrade
## query above package managers:
- `rpm -qa` - displays all installed packages
- `rpm -qi` - displays package details
- `yum list installed` - displays all installed packages
- `yum info {package-name}` - displays package details
- `dnf list installed` - displays all installed packages
- `dnf info {package-name}` - displays package details
- `dnf search {searchthing}`
GPG *(Gnu Privacy Guard)*
- keys assure good quality of files, and safety checks
`~$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -`
- additionn of the sublimetext GPG key
`~$ apt install sublime-text`
`~$ apt remove sublime-text`
### Downloading files
`~$ wget htmladdress`
- wget allows getting files over web via HTTP. Downloads to current directory.
`~$ wget -r http://10.10.1.107/index.html/`
- download all files in the directory index.html. Useful for webapps with stuff exposed, most often found via directory enumeration [[Automated Content Discovery]]
links: [[_LinuxTerminalCMDIndex]]
tags: #linux #terminal #CMD