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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. iostat: command not found
  2. iw: command not found
  3. pdfxup Command Examples in Linux
  4. CentOS / RHEL : Move a Physical Volume from an existing Volume Group to another Volume Group
  5. CentOS / RHEL : DNS servers in /etc/resolv.conf change after a reboot/network service restart. How to make them permanent
  6. LVM VG Metadata Corruption with ‘Checksum error’
  7. Glusterfs – Advanced Troubleshooting Tips and Tricks
  8. bat Command Examples in Linux
  9. What are Shell Scripts? How to Create Shell Scripts?
  10. How to Stop/disable Firewalld on CentOS/RHEL 8

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright