Is there a curses-based mp3 player available in FreeBSD ?
Alphons van Werven
freebsd at skysmurf.nl
Wed Oct 19 22:59:19 UTC 2016
Polytropon wrote:
> The use of the "locate" command requires that the corresponding
> database has been built (and is up to date). This is not always
> the case, especially on "user PCs" due to the database creation
> happening when the PC is switched off. ;-)
Moreover, "make search" has name=... and key=... arguments that allow
searching for more than just the name of the port.
For instance, I once wrote a curses-based mpg123 frontend myself. But it
was called FooBox, so something along the lines of
% locate -i mp3|grep ports
would fail to find it (if it had been in the ports tree, that is).
One can also use tools such as find(1) and/or awk(1) to search the ports
tree for certain functionality, although some of these methods can be very
slow if you're not careful. For example, I do NOT recommend the following:
% find /usr/ports -type f -name pkg-descr -exec grep -iH mp3 {} \;
Also, awk(1) requires a /usr/ports/INDEX-* file being present and current.
If I remember correctly portsnap(8) will update/maintain that file, but if
you update your ports tree using SVN or Git you need to run "make index"
manually, which can take a sod of a long time.
Of course, if one does have access to an X environment and a web browser,
there's always FreshPorts ;-) In fact, when you find a port that looks
promising and it has a website, you can click straight through and check
it out more thoroughly.
Fonz
--
A.J. "Fonz" van Werven <freebsd at skysmurf.nl>
Leonard: Our [his and Penny's] babies would be smart *and* beautiful.
Sheldon: Not to mention imaginary.
-- The Big Bang Theory, season 1 episode 3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20161020/8b8ce4dd/attachment.sig>
More information about the freebsd-questions
mailing list