how see outdated packages yarn code example

Example: yarn 2 outdated packages

# Answer for Yarn 2 Upgrade All Packages

$ yarn plugin import interactive-tools
$ yarn upgrade-interactive

 Press <up>/<down> to select packages.      Press <enter> to install.
 Press <left>/<right> to select versions.   Press <ctrl+c> to abort.
 
 # And if U Want To Use The Old Command (yarn outdated) install this plugin
$ yarn plugin import https://github.com/mskelton/yarn-plugin-outdated/raw/main/bundles/@yarnpkg/plugin-outdated.js
$ yarn outdated