LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-09-2014, 05:06 AM   #1
nolretou
Member
 
Registered: Apr 2014
Distribution: Slackware
Posts: 98

Rep: Reputation: Disabled
Question Is there a way to detect that -current is running ?


Hi !

/etc/slackware-version reports 14.1 , so I would like to know if there's a command-line way to know that I'm running -current.
 
Old 10-09-2014, 05:15 AM   #2
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Configure a mirror for -current in /etc/slackpkg/mirrors, run slackpkg update && slackpkg upgrade-all. If there's no packages to upgrade. then you're probably running -current.
 
2 members found this post helpful.
Old 10-09-2014, 06:46 AM   #3
EYo
Member
 
Registered: Jun 2009
Distribution: Slackware
Posts: 190

Rep: Reputation: 153Reputation: 153
From what kikinovak said:
#
Code:
grep "^[^#;]" /etc/slackpkg/mirrors
tells what is uncommented in mirrors file.

I always used "uname -a", knowing kernel versions.

Last edited by EYo; 10-09-2014 at 06:48 AM.
 
2 members found this post helpful.
Old 10-09-2014, 07:01 AM   #4
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,563

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
Quote:
Originally Posted by nolretou View Post
Hi !

/etc/slackware-version reports 14.1 , so I would like to know if there's a command-line way to know that I'm running -current.
There is no way of knowing without manual inspection.

You could check the Changelog of -current and see whether any of the package versions are installed.
Also check whether ls /var/log/packages/*_slack14.1* returns anything.

Last edited by drmozes; 10-09-2014 at 07:03 AM.
 
1 members found this post helpful.
Old 10-09-2014, 07:03 AM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,409

Rep: Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775
Just for fun.
For Slackware64
Code:
if [[ $(lftp -c find ftp://ftp.slackware.com/pub/slackware/slackware64-current/slackware64/a/ | grep $(uname -r)) ]]; then echo "Slackware64-current kernel installed"; else echo "Slackware64-current kernel not installed"; fi
PS - This only checks the kernel version. drmozes is correct that a manual inspection is the only true method.

Last edited by allend; 10-09-2014 at 07:31 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Detect Current OS in Compile Time KillerCode Programming 5 12-09-2010 06:19 AM
gtk+ detect current active window C++ linuxmandrake Programming 2 06-29-2010 02:07 PM
Detect current resolution rose_bud4201 Slackware 6 06-25-2005 09:07 PM
Detect my true CPU rating (NOT the current speed) qwijibow Linux - Hardware 5 11-16-2004 08:53 PM
Valknut doesn't detect my current IP jogurt666 Linux - Software 0 10-17-2004 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration