I upgraded one system and did a new install on another, and the pg command is missing! I know I can use more, but I've been using pg for so long...
I tried sudo apt install pg, but no go there. Any ideas how to get pg back?
Thanks!
The pg command is missing in LM 19!?
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
The pg command is missing in LM 19!?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: The pg command is missing in LM 19!?
It's gone - it was part of the utils-linux package - dropped a few versions ago
From https://launchpad.net/ubuntu/+source/ut ... 2-2ubuntu1
From https://launchpad.net/ubuntu/+source/ut ... 2-2ubuntu1
util-linux (2.29.2-2) unstable; urgency=medium
"The big post-release cleanup."
[ Andreas Henriksson ]
* Add DEP12 upstream metadata (Closes: #852731)
* Revert "Add configure flag to make libmount skip /etc/mtab"
* Drop explicit --disable-silent-rules configure flag
* Stop shipping the deprecated 'pg' utility
* Revert "Explicitly (re)enable deprecated pg utility"
* Stop shipping deprecated 'tunelp' utility
* Stop shipping the deprecated 'line' utility
* Drop explicitly passing CC for cross-building
* Use configure flags to disable utils shipped by bsdmainutils
* Revert "Attempt to work around debootstrap problems for hwclock.sh"
* Drop no longer needed lintian overrides for dropped workaround
* Drop obsolete fdisk reclaim on PPC
* Revert "Rename libuuid user to uuidd in libuuidd1 postinst as well"
* Revert "libuuid1: add passwd dependency for user migration"
* Drop obsolete uuid-runtime user/group migration code
* Remove 'pg' from being a pager alternative
* Stop shipping deprecated tailf utility
* Mention tailf removal in util-linux.NEWS
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Re: The pg command is missing in LM 19!?
Thanks for the info. And that's just strange. I never knew that pg could be a security issue. I guess I'll have to re-teach my fingers to type more (and as an aside, when I worked for Bell Labs in my past, more was the normal Unix command. pg came later)
Is there something other than more that's similar to pg?
Is there something other than more that's similar to pg?
Re: The pg command is missing in LM 19!?
I had never heard of
pg
before. more
is still available, as is the improved version, less
.“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan
Re: The pg command is missing in LM 19!?
The command
But
pg
is a very old command. Older than Linux Mint and older even than Ubuntu. First time came across it on something called Microsoft Xenix and SCO Unix during the last decade of the previous century. But
pg
managed to survive well hidden among all the other executables located in /usr/bin and is still present in Linux Mint 18.x e.g.
Code: Select all
$ inxi -Sx
System: Host: unimatrix0 Kernel: 4.4.0-130-generic i686 bits: 32 compiler: gcc v: 5.4.0 Desktop: Xfce 4.12.3
tk: Gtk 2.24.28 Distro: Linux Mint 18.1 Serena base: Ubuntu 16.04 LTS Xenial
$ which pg
/usr/bin/pg
Code: Select all
$ pg --help
Usage:
pg [options] [+line] [+/pattern/] [files]
Browse pagewise through text files.
[...]
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
Re: The pg command is missing in LM 19!?
It's in 17.x also. But not in 19.
“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan
Re: The pg command is missing in LM 19!?
Unfortunately there can be a lot of legacy scripts around that depended upon 'pg' being available. For compatibility, is the source around to rebuild it?