<SOLVED> apt seach xxx output = "p" (Virtual)

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
cc11rocks

<SOLVED> apt seach xxx output = "p" (Virtual)

Post by cc11rocks »

apt seach xxx output = "p" (Virtual). What does this mean? I was conducting tests on ISO's for Linux Mint. One of the tests is to do "apt search $NAME". The output was "p". Does this mean it is NOT installed?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29595
Joined: Wed Jul 06, 2011 3:58 am

Re: apt seach xxx output = "p" (Virtual)

Post by xenopeek »

"apt search" uses aptitude. (You can check, /usr/bin/apt is just a Python script wrapping apt-get, apt-cache, aptitude, dpkg and others...)

See the manpage for aptitude, for the search action:
Each search result is listed on a separate line. The first character of each line indicates the current state of the package: the most common states are p, meaning that no trace of the package exists on the system, ...
Image
cc11rocks

Re: <SOLVED> apt seach xxx output = "p" (Virtual)

Post by cc11rocks »

Thank you very much!
Locked

Return to “Scripts & Bash”