• 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 not found

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.

If you encounter the below error while running the command debsecan:

debsecan: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install debsecan
Ubuntu apt-get install debsecan
Kali Linux apt-get install debsecan
Raspbian apt-get install debsecan

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. “git mailinfo” Command Examples
  2. Changing the IPset rules from IPtables to Firewalld in CentOS/RHEL 7
  3. gh extension: Manage extensions for the GitHub CLI
  4. Unable To Extend LVM File System with Associated Snapshot in CentOS/RHEL
  5. Medusa: command not found
  6. fast: Test your download and upload speed using fast.com
  7. CentOS / RHEL 7 : Beginners guide to systemd targets (replacement of SysV init run levels)
  8. gedit: command not found
  9. How to Configure Separate Port For SSH and SFTP On CentOS/RHEL
  10. mdbook Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • “glab pipeline” Command Examples
  • “glab mr” Command Examples
  • “glab mr merge” Command Examples
  • “glab mr” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright