• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

debsecan Command Examples in Linux

by Deepika

debsecan is a command line tool in Linux that can be used to scan a Debian-based system for known vulnerabilities. It checks the installed packages against a database of known vulnerabilities and reports any that are found. The vulnerabilities are identified by their Common Vulnerabilities and Exposures (CVE) identifier.

The debsecan command can be used to check the system for vulnerabilities and help the user to decide whether to update or patch the affected packages or not.

debsecan Command Examples

1. List vulnerable installed packages on the current host:

# debsecan

2. List vulnerable installed packages of a specific suite:

# debsecan --suite release_code_name

3. List only fixed vulnerabilities:

# debsecan --suite release_code_name --only-fixed

4. List only fixed vulnerabilities of unstable (“sid”) and mail to root:

# debsecan --suite sid --only-fixed --format report --mailto root --update-history

5. Upgrade vulnerable installed packages:

# sudo apt upgrade $(debsecan --only-fixed --format packages)

Filed Under: Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL 6 : How to disable IPv6
  2. How to uninstall arduino from Ubuntu
  3. sreport: command not found
  4. How to create and mount Btrfs file system (explained with examples)
  5. Comparing NET-TOOLS V/s IPROUTE Package Commands (ip Vs ifconfig command comparison)
  6. datamash: command not found
  7. find: command not found
  8. ping not working on a Newly Built CentOS/RHEL server
  9. gh release: Manage GitHub releases from the command-line
  10. CentOS / RHEL 6 : Lock User Account After N Number of Incorrect Login Attempts

You May Also Like

Primary Sidebar

Recent Posts

  • gixy Command Examples
  • gitsome Command Examples
  • gitmoji Command Examples
  • gitlint Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright