×
UNIX.COM Login
Username:
Password:  
Show Password






👤


Linux

RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

Terminal command

👤 Login to reply

 
Thread Tools Search this Thread Display Modes
    #8  
Old 05-19-2018
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 3 July 2018, 11:43 PM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 5,786
Thanks: 112
Thanked 1,698 Times in 1,248 Posts
Quote:
Originally Posted by bakunin View Post
Issue man apt-cdrom
Quote:
Originally Posted by 69Rixter View Post


Code:
sudo apt-get cdrom
E: Invalid operation cdrom

I did look at the man.
Once you stop being amused from my sarcasm you might notice the subtle difference between what i suggested and what you - by your own admission - executed. I am not sure but what you posted suggests that you might have looked at the wrong man page.

Anyhow, since you were busy making fun of my obviously lacking intellectual capacity i took the time to look up the man page myself. So, along with a big apology for not being fluent in mind reading, here is what i found, the relevant parts are marked bold by me:



Code:
# man apt-cdrom
[...]
SYNOPSIS
       apt-cdrom [-rmfan] [-d=cdrom_mount_point] [-o=config_string]
                 [-c=config_file] {add | ident | {-v | --version} |
                 {-h | --help}}
[...]
       apt-cdrom is used to add a new CD-ROM to APT's list of available
       sources.  apt-cdrom takes care of determining the structure of the disc
       as well as correcting for several possible mis-burns and verifying the
       index files.
[...]
       add
           add is used to add a new disc to the source list. It will unmount
           the CD-ROM device, prompt for a disc to be inserted and then
           proceed to scan it and copy the index files.
[...]
       -d, --cdrom
           Mount point; specify the location to mount the CD-ROM. This mount
           point must be listed in /etc/fstab and properly configured.
[...]
       -m, --no-mount
           No mounting; prevent apt-cdrom from mounting and unmounting the
           mount point.

So, since i suppose you don't want to mount/unmount the pen drive (you see, i am getting better at reading minds) you mount the pen drive at /some/where, then issue



Code:
# apt-cdrom -m -d=/some/where add

and you are done.

I hope this helps.

bakunin
The Following User Says Thank You to bakunin For This Useful Post:
rbatte1 (05-21-2018)
Sponsored Links
👤 Login to reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Execute ssh command with additional terminal command to any remote user not working script tomislav91 Shell Programming and Scripting 8 02-26-2018 09:13 PM
who command from non terminal in unix lalitpct Shell Programming and Scripting 4 01-26-2012 08:02 AM
Is command line invocation of gnome-terminal to run more than one command possible? Narnie Shell Programming and Scripting 0 02-16-2010 10:57 PM
what's the terminal command to do this ? aneuryzma UNIX for Dummies Questions & Answers 6 09-16-2009 11:45 AM
Plz Help : How to use write command to execute command on some other terminal Aashish UNIX for Dummies Questions & Answers 2 03-03-2006 11:25 AM



All times are GMT -4. The time now is 04:13 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.